summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-15 14:57:44 -0400
committerDavid Robillard <d@drobilla.net>2016-03-15 14:57:44 -0400
commit9edf72a81bc77483963ede0045f88e8daf98a7b2 (patch)
treea481a3e36cdae0c1d07b960d01582c3fe782b286
parent59601f4e1cf94c0062e6e3d343822142ec5ffecb (diff)
downloadlilv-9edf72a81bc77483963ede0045f88e8daf98a7b2.tar.gz
lilv-9edf72a81bc77483963ede0045f88e8daf98a7b2.tar.bz2
lilv-9edf72a81bc77483963ede0045f88e8daf98a7b2.zip
Remove unused internal use of node length
-rw-r--r--src/node.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/node.c b/src/node.c
index 575d3f0..e7751de 100644
--- a/src/node.c
+++ b/src/node.c
@@ -21,7 +21,7 @@
#include "lilv_internal.h"
static void
-lilv_node_set_numerics_from_string(LilvNode* val, size_t len)
+lilv_node_set_numerics_from_string(LilvNode* val)
{
const char* str = (const char*)sord_node_get_string(val->node);
char* endptr;
@@ -104,7 +104,6 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
LilvNode* result = NULL;
SordNode* datatype_uri = NULL;
LilvNodeType type = LILV_VALUE_STRING;
- size_t len = 0;
switch (sord_node_get_type(node)) {
case SORD_URI:
@@ -137,8 +136,8 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
sord_node_get_string(datatype_uri));
}
result = lilv_node_new(
- world, type, (const char*)sord_node_get_string_counted(node, &len));
- lilv_node_set_numerics_from_string(result, len);
+ world, type, (const char*)sord_node_get_string(node));
+ lilv_node_set_numerics_from_string(result);
break;
}