summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hosts/lv2_jack_host.c3
-rw-r--r--slv2/port.h14
-rw-r--r--src/port.c17
3 files changed, 1 insertions, 33 deletions
diff --git a/hosts/lv2_jack_host.c b/hosts/lv2_jack_host.c
index 638c420..6f72449 100644
--- a/hosts/lv2_jack_host.c
+++ b/hosts/lv2_jack_host.c
@@ -181,8 +181,6 @@ create_port(struct JackHost* host,
slv2_instance_connect_port(host->instance, port_index, NULL);
- char* type_str = slv2_port_get_data_type(host->plugin, port->id);
-
/* Get the port symbol (label) for console printing */
char* symbol = slv2_port_get_symbol(host->plugin, port->id);
@@ -224,7 +222,6 @@ create_port(struct JackHost* host,
}
free(symbol);
- free(type_str);
}
diff --git a/slv2/port.h b/slv2/port.h
index 7b1d98a..5c29774 100644
--- a/slv2/port.h
+++ b/slv2/port.h
@@ -87,25 +87,13 @@ slv2_port_get_name(SLV2Plugin* plugin,
SLV2PortID id);
-/** Get the class (direction and rate) of a port.
+/** Get the class (input/output, data type, rate...) of a port.
*/
SLV2PortClass
slv2_port_get_class(SLV2Plugin* plugin,
SLV2PortID id);
-/** Get the data type of a port (as a URI).
- *
- * The only data type included in the core LV2 specification is lv2:float.
- * Compare this return value with SLV2_DATA_TYPE_FLOAT to check for it.
- *
- * Returned string must be free()'d by caller.
- */
-char*
-slv2_port_get_data_type(SLV2Plugin* plugin,
- SLV2PortID id);
-
-
/** Get the default value of a port.
*
* Only valid for ports with a data type of lv2:float.
diff --git a/src/port.c b/src/port.c
index f64dbbe..a7691ea 100644
--- a/src/port.c
+++ b/src/port.c
@@ -98,23 +98,6 @@ slv2_port_get_class(SLV2Plugin* p,
}
-char*
-slv2_port_get_data_type(SLV2Plugin* p,
- SLV2PortID id)
-{
- SLV2Value type = slv2_port_get_value(p, id, "lv2:datatype");
- assert(type);
- assert(type->num_values == 1);
- assert(type->values);
-
- char* ret = type->values[0];
- type->values[0] = NULL; // prevent deletion
-
- slv2_value_free(type);
- return ret;
-}
-
-
SLV2Value
slv2_port_get_value(SLV2Plugin* p,
SLV2PortID id,