From 3f69656ed2a8dee9f5a67041daa8b27e2cd13895 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 May 2008 23:26:56 +0000 Subject: Parse files directly into "world" model instead of into a temporary model, then copying. git-svn-id: http://svn.drobilla.net/lad/slv2@1196 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 01201fb..1d2f339 100644 --- a/src/world.c +++ b/src/world.c @@ -197,19 +197,7 @@ slv2_world_free(SLV2World world) void slv2_world_load_file(SLV2World world, librdf_uri* file_uri) { - librdf_storage* storage = librdf_new_storage(world->world, - "memory", NULL, NULL); - librdf_model* model = librdf_new_model(world->world, - storage, NULL); - librdf_parser_parse_into_model(world->parser, file_uri, NULL, - model); - - librdf_stream* stream = librdf_model_as_stream(model); - librdf_model_add_statements(world->model, stream); - librdf_free_stream(stream); - - librdf_free_model(model); - librdf_free_storage(storage); + librdf_parser_parse_into_model(world->parser, file_uri, NULL, world->model); } -- cgit v1.2.1