diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-26 02:11:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-26 02:11:06 +0000 |
commit | c52bdcf69d049a4afa107e6247321afb93c65e1b (patch) | |
tree | e61c757b4682052613b151929ae022067458e603 /libs/ardour/session.cc | |
parent | a054a74dd29197679eb6f67e6fcaa54df7d70810 (diff) |
Remove unused named selection / chunk code.
git-svn-id: svn://localhost/ardour2/branches/3.0@12939 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index bcba42f01d..9dacdc34cb 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -68,7 +68,6 @@ #include "ardour/graph.h" #include "ardour/midi_track.h" #include "ardour/midi_ui.h" -#include "ardour/named_selection.h" #include "ardour/operations.h" #include "ardour/playlist.h" #include "ardour/plugin.h" @@ -280,9 +279,6 @@ Session::destroy () /* tell everyone to drop references and delete objects as we go */ - DEBUG_TRACE (DEBUG::Destruction, "delete named selections\n"); - named_selections.clear (); - DEBUG_TRACE (DEBUG::Destruction, "delete regions\n"); RegionFactory::delete_all_regions (); @@ -3786,56 +3782,6 @@ Session::unmark_insert_id (uint32_t id) } } - -/* Named Selection management */ - -boost::shared_ptr<NamedSelection> -Session::named_selection_by_name (string name) -{ - Glib::Mutex::Lock lm (named_selection_lock); - for (NamedSelectionList::iterator i = named_selections.begin(); i != named_selections.end(); ++i) { - if ((*i)->name == name) { - return *i; - } - } - return boost::shared_ptr<NamedSelection>(); -} - -void -Session::add_named_selection (boost::shared_ptr<NamedSelection> named_selection) -{ - { - Glib::Mutex::Lock lm (named_selection_lock); - named_selections.insert (named_selections.begin(), named_selection); - } - - set_dirty(); - - NamedSelectionAdded (); /* EMIT SIGNAL */ -} - -void -Session::remove_named_selection (boost::shared_ptr<NamedSelection> named_selection) -{ - bool removed = false; - - { - Glib::Mutex::Lock lm (named_selection_lock); - - NamedSelectionList::iterator i = find (named_selections.begin(), named_selections.end(), named_selection); - - if (i != named_selections.end()) { - named_selections.erase (i); - set_dirty(); - removed = true; - } - } - - if (removed) { - NamedSelectionRemoved (); /* EMIT SIGNAL */ - } -} - void Session::reset_native_file_format () { |