diff options
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 772d282f88..99841e34d7 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1444,17 +1444,10 @@ LV2Plugin::add_state(XMLNode* root) const } } -// TODO: Once we can rely on lilv 0.16.0, lilv_world_get can replace this static LilvNode* get_value(LilvWorld* world, const LilvNode* subject, const LilvNode* predicate) { - LilvNodes* vs = lilv_world_find_nodes(world, subject, predicate, NULL); - if (vs) { - LilvNode* node = lilv_node_duplicate(lilv_nodes_get_first(vs)); - lilv_nodes_free(vs); - return node; - } - return NULL; + return lilv_world_get(world, subject, predicate, NULL); } void |