summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-05 02:04:24 +0000
committerDavid Robillard <d@drobilla.net>2011-05-05 02:04:24 +0000
commit1f22b9a433dbce38a44cf4c631b5c21104a98fa4 (patch)
treee1f8fd9aa9b458ff0be076e513d6a7ee94992a91
parent5233941417f053a8d2e55b7720860e3778a21762 (diff)
downloadlilv-1f22b9a433dbce38a44cf4c631b5c21104a98fa4.tar.gz
lilv-1f22b9a433dbce38a44cf4c631b5c21104a98fa4.tar.bz2
lilv-1f22b9a433dbce38a44cf4c631b5c21104a98fa4.zip
Remove useless world->namespaces.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3252 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/lilv_internal.h1
-rw-r--r--src/world.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index 1e54f77..9698fe9 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -112,7 +112,6 @@ struct LilvWorldImpl {
SordWorld* world;
SordModel* model;
SerdReader* reader;
- SerdEnv* namespaces;
unsigned n_read_files;
LilvPluginClass* lv2_plugin_class;
LilvPluginClasses* plugin_classes;
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);
}