summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-15 23:59:06 +0000
committerDavid Robillard <d@drobilla.net>2011-05-15 23:59:06 +0000
commit41b62398d39accc4289c7f19a001aa2dfef2dedb (patch)
treee865a89bd52c39a1dab7e0e0223709a237ba8614 /src
parentae1ec4476d7611d136ff770aafbc9bc5f49900bc (diff)
downloadlilv-41b62398d39accc4289c7f19a001aa2dfef2dedb.tar.gz
lilv-41b62398d39accc4289c7f19a001aa2dfef2dedb.tar.bz2
lilv-41b62398d39accc4289c7f19a001aa2dfef2dedb.zip
Remove dead code found by clang static analyser
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3264 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 1c5cc4f..e410a11 100644
--- a/src/node.c
+++ b/src/node.c
@@ -99,7 +99,6 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
switch (sord_node_get_type(node)) {
case SORD_URI:
- type = LILV_VALUE_URI;
result = malloc(sizeof(struct LilvNodeImpl));
result->world = (LilvWorld*)world;
result->type = LILV_VALUE_URI;
@@ -131,8 +130,8 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
}
break;
case SORD_BLANK:
- type = LILV_VALUE_BLANK;
- result = lilv_node_new(world, type, (const char*)sord_node_get_string(node));
+ result = lilv_node_new(world, LILV_VALUE_BLANK,
+ (const char*)sord_node_get_string(node));
break;
default:
assert(false);