summaryrefslogtreecommitdiffstats
path: root/src/port.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/port.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/port.c')
-rw-r--r--src/port.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/port.c b/src/port.c
index bf7ab19..e72aba0 100644
--- a/src/port.c
+++ b/src/port.c
@@ -156,27 +156,13 @@ slv2_port_get_value(SLV2Plugin p,
char* query = NULL;
/* Hack around broken RASQAL, full URI predicates don't work :/ */
-
- if (predicate->type == SLV2_VALUE_URI) {
- query = slv2_strjoin(
- "PREFIX slv2predicate: <", slv2_value_as_string(predicate), ">",
- "SELECT DISTINCT ?value WHERE { \n"
- "<", slv2_value_as_uri(p->plugin_uri), "> lv2:port ?port .\n"
- "?port lv2:symbol \"", slv2_value_as_string(port->symbol), "\";\n\t",
- " slv2predicate: ?value .\n"
- "}\n", NULL);
- } else if (predicate->type == SLV2_VALUE_QNAME) {
- query = slv2_strjoin(
- "SELECT DISTINCT ?value WHERE { \n"
- "<", slv2_value_as_uri(p->plugin_uri), "> lv2:port ?port .\n"
- "?port lv2:symbol \"", slv2_value_as_string(port->symbol), "\";\n\t",
- slv2_value_as_string(predicate), " ?value .\n"
- "}\n", NULL);
- } else {
- fprintf(stderr, "slv2_port_get_value error: "
- "predicate is not a URI or QNAME\n");
- return NULL;
- }
+ query = slv2_strjoin(
+ "PREFIX slv2predicate: <", slv2_value_as_string(predicate), ">",
+ "SELECT DISTINCT ?value WHERE { \n"
+ "<", slv2_value_as_uri(p->plugin_uri), "> lv2:port ?port .\n"
+ "?port lv2:symbol \"", slv2_value_as_string(port->symbol), "\";\n\t",
+ " slv2predicate: ?value .\n"
+ "}\n", NULL);
SLV2Values result = slv2_plugin_query_variable(p, query, 0);