From 1f22b9a433dbce38a44cf4c631b5c21104a98fa4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 5 May 2011 02:04:24 +0000 Subject: Remove useless world->namespaces. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3252 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index 0de3e38..4dc7767 100644 --- a/src/world.c +++ b/src/world.c @@ -28,16 +28,6 @@ #include "lilv_internal.h" -static void -lilv_world_set_prefix(LilvWorld* world, const char* name, const char* uri) -{ - const SerdNode name_node = serd_node_from_string(SERD_LITERAL, - (const uint8_t*)name); - const SerdNode uri_node = serd_node_from_string(SERD_URI, - (const uint8_t*)uri); - serd_env_add(world->namespaces, &name_node, &uri_node); -} - LILV_API LilvWorld* lilv_world_new(void) @@ -95,14 +85,6 @@ lilv_world_new(void) world, NULL, world->lv2_plugin_node, "Plugin"); assert(world->lv2_plugin_class); - world->namespaces = serd_env_new(); - lilv_world_set_prefix(world, "rdf", LILV_NS_RDF); - lilv_world_set_prefix(world, "rdfs", LILV_NS_RDFS); - lilv_world_set_prefix(world, "doap", LILV_NS_DOAP); - lilv_world_set_prefix(world, "foaf", LILV_NS_FOAF); - lilv_world_set_prefix(world, "lv2", LILV_NS_LV2); - lilv_world_set_prefix(world, "lv2ev", "http://lv2plug.in/ns/ext/event#"); - world->n_read_files = 0; world->opt.filter_language = true; world->opt.dyn_manifest = true; @@ -175,8 +157,6 @@ lilv_world_free(LilvWorld* world) sord_world_free(world->world); world->world = NULL; - serd_env_free(world->namespaces); - free(world); } -- cgit v1.2.1