summaryrefslogtreecommitdiffstats
path: root/src/value.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-14 17:10:38 +0000
committerDavid Robillard <d@drobilla.net>2009-02-14 17:10:38 +0000
commit8906e6f6b3bb0a38c27fd0c8c9ff347890aeb0a5 (patch)
treef2ddf2bc808b3035c4420f75d3eb70858facbbd5 /src/value.c
parent44a56b1c91e8145421dbf3cd414d6fb482ed6959 (diff)
downloadlilv-8906e6f6b3bb0a38c27fd0c8c9ff347890aeb0a5.tar.gz
lilv-8906e6f6b3bb0a38c27fd0c8c9ff347890aeb0a5.tar.bz2
lilv-8906e6f6b3bb0a38c27fd0c8c9ff347890aeb0a5.zip
Remove dead code.
Test coverage. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1935 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/value.c b/src/value.c
index ba39754..ae24a68 100644
--- a/src/value.c
+++ b/src/value.c
@@ -208,8 +208,8 @@ slv2_value_equals(SLV2Value value, SLV2Value other)
switch (value->type) {
case SLV2_VALUE_URI:
return (librdf_uri_equals(value->val.uri_val, other->val.uri_val) != 0);
- case SLV2_VALUE_QNAME:
case SLV2_VALUE_STRING:
+ case SLV2_VALUE_QNAME_UNUSED:
return ! strcmp(value->str_val, other->str_val);
case SLV2_VALUE_INT:
return (value->val.int_val == other->val.int_val);
@@ -236,8 +236,8 @@ slv2_value_get_turtle_token(SLV2Value value)
result = calloc(len, sizeof(char));
snprintf(result, len, "<%s>", value->str_val);
break;
- case SLV2_VALUE_QNAME:
case SLV2_VALUE_STRING:
+ case SLV2_VALUE_QNAME_UNUSED:
result = strdup(value->str_val);
break;
case SLV2_VALUE_INT: