diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-23 19:29:38 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-23 19:29:38 +0000 |
commit | 569bf2f27e3be18499a9e5b78a56fda7e7d200c7 (patch) | |
tree | 1c47f1fd05a67e80eb346dff68ec5d7757f34669 /libs/ardour/vst_plugin.cc | |
parent | 360b4aed1789e9fdd416351bfa5bbec5b8ef37ae (diff) |
Remove VST current_program variable, since that stuff is
managed by the presets code in Plugin.
git-svn-id: svn://localhost/ardour2/branches/3.0@10801 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 26212ba03d..130c43ede6 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -145,12 +145,6 @@ VSTPlugin::add_state (XMLNode* root) const { LocaleGuard lg (X_("POSIX")); - if (_state->current_program != -1) { - char buf[32]; - snprintf (buf, sizeof (buf), "%d", _state->current_program); - root->add_property ("current-program", buf); - } - if (_plugin->flags & 32 /* effFlagsProgramsChunks */) { gchar* data = get_chunk (false); @@ -193,12 +187,6 @@ VSTPlugin::set_state (const XMLNode& node, int version) return 0; } - const XMLProperty* prop; - - if ((prop = node.property ("current-program")) != 0) { - _state->want_program = atoi (prop->value().c_str()); - } - XMLNode* child; int ret = -1; @@ -230,10 +218,6 @@ VSTPlugin::set_state (const XMLNode& node, int version) _plugin->setParameter (_plugin, param, val); } - /* program number is not knowable */ - - _state->current_program = -1; - ret = 0; } |