From 5695b1790e3fdee4f15a45ed507e41ac866917cd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 26 Oct 2006 00:47:22 +0000 Subject: remove StateManager code entirely and more debugging output cruft git-svn-id: svn://localhost/ardour2/trunk@1008 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/insert.cc | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'libs/ardour/insert.cc') 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 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 (&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 -- cgit v1.2.3