diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-29 10:00:23 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-02 18:04:40 -0600 |
commit | f470d3e856e7dee3c6003aeff0c98005822c5f90 (patch) | |
tree | 20b9f2d212195a2a7f04442e4365d6715e05e385 /libs/ardour/lv2_plugin.cc | |
parent | bc3b65834991b126843e85618c2f5d1d3c7e9389 (diff) |
remove all use of NO_PLUGIN_STATE #ifdef
We determined several years that we should never ever do this,
and changed the basis for the free/demo copy because of that.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index fca7bbcf13..5da1895d61 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -2128,8 +2128,6 @@ LV2Plugin::set_state(const XMLNode& node, int version) return -1; } -#ifndef NO_PLUGIN_STATE - if (version < 3000) { nodes = node.children("port"); } else { @@ -2210,7 +2208,6 @@ LV2Plugin::set_state(const XMLNode& node, int version) if (_session.loading ()) { latency_compute_run(); } -#endif return Plugin::set_state(node, version); } @@ -3425,7 +3422,7 @@ std::vector<Plugin::PresetRecord> LV2PluginInfo::get_presets (bool /*user_only*/) const { std::vector<Plugin::PresetRecord> p; -#ifndef NO_PLUGIN_STATE + const LilvPlugin* lp = NULL; try { PluginPtr plugin; @@ -3468,7 +3465,7 @@ LV2PluginInfo::get_presets (bool /*user_only*/) const lilv_node_free(rdfs_label); lilv_node_free(pset_Preset); lilv_node_free(lv2_appliesTo); -#endif + return p; } |