diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-26 00:47:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-26 00:47:22 +0000 |
commit | 5695b1790e3fdee4f15a45ed507e41ac866917cd (patch) | |
tree | a53c735cf6b2264d5fa50b3927f1da7c5a175422 /libs/ardour/redirect.cc | |
parent | bcd511aa3fec59e1527c8b7ab80dabda4db1a6f9 (diff) |
remove StateManager code entirely and more debugging output cruft
git-svn-id: svn://localhost/ardour2/trunk@1008 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/redirect.cc')
-rw-r--r-- | libs/ardour/redirect.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libs/ardour/redirect.cc b/libs/ardour/redirect.cc index 18b16eaa73..e609687662 100644 --- a/libs/ardour/redirect.cc +++ b/libs/ardour/redirect.cc @@ -144,12 +144,6 @@ Redirect::load_automation (string path) tosave.insert (port); } -#ifdef STATE_MANAGER - for (set<uint32_t>::iterator i = tosave.begin(); i != tosave.end(); ++i) { - automation_list (*i).save_state (_("loaded from disk")); - } -#endif - return 0; bad: @@ -439,36 +433,9 @@ Redirect::find_next_event (nframes_t now, nframes_t end, ControlEvent& next_even } void -Redirect::store_state (RedirectState& state) const -{ - state.active = _active; -} - -Change -Redirect::restore_state (StateManager::State& state) -{ - RedirectState* rstate = dynamic_cast<RedirectState*> (&state); - set_active (rstate->active, this); - return Change (0); -} - -StateManager::State* -Redirect::state_factory (std::string why) const -{ - RedirectState* state = new RedirectState (why); - - store_state (*state); - - return state; -} - -void Redirect::set_active (bool yn, void* src) { _active = yn; -#ifdef STATE_MANAGER - save_state (_("active_changed")); -#endif active_changed (this, src); _session.set_dirty (); } |