13
0

remove some dead code

git-svn-id: svn://localhost/ardour2/branches/3.0@8750 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-02-07 18:21:14 +00:00
parent f17e2847b8
commit 32e6f03cd4

View File

@ -236,19 +236,12 @@ LV2Plugin::set_parameter (uint32_t which, float val)
{ {
if (which < slv2_plugin_get_num_ports(_plugin)) { if (which < slv2_plugin_get_num_ports(_plugin)) {
_shadow_data[which] = val; _shadow_data[which] = val;
#if 0
if (which < parameter_count() && controls[which]) {
controls[which]->Changed ();
}
#endif
} else { } else {
warning << string_compose (_("Illegal parameter number used with plugin \"%1\"." warning << string_compose (_("Illegal parameter number used with plugin \"%1\"."
"This is a bug in either %2 or the LV2 plugin (%3)"), "This is a bug in either %2 or the LV2 plugin (%3)"),
name(), PROGRAM_NAME, unique_id()) << endmsg; name(), PROGRAM_NAME, unique_id()) << endmsg;
} }
Plugin::set_parameter (which, val); Plugin::set_parameter (which, val);
} }
@ -325,11 +318,7 @@ LV2Plugin::add_state (XMLNode* root) const
snprintf(buf, sizeof(buf), "%+f", _shadow_data[i]); snprintf(buf, sizeof(buf), "%+f", _shadow_data[i]);
child->add_property("value", string(buf)); child->add_property("value", string(buf));
root->add_child_nocopy (*child); root->add_child_nocopy (*child);
}
/*if (i < controls.size() && controls[i]) {
root->add_child_nocopy (controls[i]->get_state());
}*/
}
} }
if (_supports_persist) { if (_supports_persist) {