remove some dead code
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 18:21:14 +0000 (18:21 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 7 Feb 2011 18:21:14 +0000 (18:21 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8750 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/lv2_plugin.cc

index 096123f56416e0f38781cc7b265ca2256263d10f..8806a4f322e80d03c50fbdb02e941c9a6bbf591f 100644 (file)
@@ -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) {