summaryrefslogtreecommitdiff
path: root/libs/ardour/insert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/insert.cc')
-rw-r--r--libs/ardour/insert.cc48
1 files changed, 0 insertions, 48 deletions
diff --git a/libs/ardour/insert.cc b/libs/ardour/insert.cc
index 5531e4136b..ee8fdbcec0 100644
--- a/libs/ardour/insert.cc
+++ b/libs/ardour/insert.cc
@@ -81,10 +81,6 @@ PluginInsert::PluginInsert (Session& s, boost::shared_ptr<Plugin> plug, Placemen
init ();
-#ifdef STATE_MANAGER
- save_state (_("initial state"));
-#endif
-
{
Glib::Mutex::Lock em (_session.engine().process_lock());
IO::MoreOutputs (output_streams ());
@@ -102,10 +98,6 @@ PluginInsert::PluginInsert (Session& s, const XMLNode& node)
set_automatable ();
-#ifdef STATE_MANAGER
- save_state (_("initial state"));
-#endif
-
_plugins[0]->ParameterChanged.connect (mem_fun (*this, &PluginInsert::parameter_changed));
{
@@ -129,10 +121,6 @@ PluginInsert::PluginInsert (const PluginInsert& other)
init ();
-#ifdef STATE_MANAGER
- save_state (_("initial state"));
-#endif
-
RedirectCreated (this); /* EMIT SIGNAL */
}
@@ -781,35 +769,6 @@ PluginInsert::latency()
return _plugins[0]->latency ();
}
-void
-PluginInsert::store_state (PluginInsertState& state) const
-{
- Redirect::store_state (state);
- _plugins[0]->store_state (state.plugin_state);
-}
-
-Change
-PluginInsert::restore_state (StateManager::State& state)
-{
- PluginInsertState* pistate = dynamic_cast<PluginInsertState*> (&state);
-
- Redirect::restore_state (state);
-
- _plugins[0]->restore_state (pistate->plugin_state);
-
- return Change (0);
-}
-
-StateManager::State*
-PluginInsert::state_factory (std::string why) const
-{
- PluginInsertState* state = new PluginInsertState (why);
-
- store_state (*state);
-
- return state;
-}
-
ARDOUR::PluginType
PluginInsert::type ()
{
@@ -847,10 +806,7 @@ PortInsert::PortInsert (Session& s, Placement p)
: Insert (s, p, 1, -1, 1, -1)
{
init ();
-#ifdef STATE_MANAGER
- save_state (_("initial state"));
RedirectCreated (this); /* EMIT SIGNAL */
-#endif
}
@@ -858,11 +814,7 @@ PortInsert::PortInsert (const PortInsert& other)
: Insert (other._session, other.placement(), 1, -1, 1, -1)
{
init ();
-#ifdef STATE_MANAGER
- save_state (_("initial state"));
RedirectCreated (this); /* EMIT SIGNAL */
-#endif
-
}
void