diff options
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 20 |
1 files changed, 0 insertions, 20 deletions
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); } |