From 41b62398d39accc4289c7f19a001aa2dfef2dedb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 May 2011 23:59:06 +0000 Subject: Remove dead code found by clang static analyser git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3264 a436a847-0d15-0410-975c-d299462d15a1 --- src/node.c | 5 ++--- 1 file 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); -- cgit v1.2.1