From 32e6f03cd40a89d73ded41d96f4e563d70e133ff Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Feb 2011 18:21:14 +0000 Subject: [PATCH] remove some dead code git-svn-id: svn://localhost/ardour2/branches/3.0@8750 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/lv2_plugin.cc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 096123f564..8806a4f322 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -236,19 +236,12 @@ LV2Plugin::set_parameter (uint32_t which, float val) { if (which < slv2_plugin_get_num_ports(_plugin)) { _shadow_data[which] = val; - -#if 0 - if (which < parameter_count() && controls[which]) { - controls[which]->Changed (); - } -#endif - } else { warning << string_compose (_("Illegal parameter number used with plugin \"%1\"." "This is a bug in either %2 or the LV2 plugin (%3)"), name(), PROGRAM_NAME, unique_id()) << endmsg; } - + Plugin::set_parameter (which, val); } @@ -325,11 +318,7 @@ LV2Plugin::add_state (XMLNode* root) const snprintf(buf, sizeof(buf), "%+f", _shadow_data[i]); child->add_property("value", string(buf)); root->add_child_nocopy (*child); - - /*if (i < controls.size() && controls[i]) { - root->add_child_nocopy (controls[i]->get_state()); - }*/ - } + } } if (_supports_persist) {