diff options
author | David Robillard <d@drobilla.net> | 2011-05-15 23:59:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-15 23:59:06 +0000 |
commit | 41b62398d39accc4289c7f19a001aa2dfef2dedb (patch) | |
tree | e865a89bd52c39a1dab7e0e0223709a237ba8614 | |
parent | ae1ec4476d7611d136ff770aafbc9bc5f49900bc (diff) | |
download | lilv-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
-rw-r--r-- | src/node.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |