From d514cd2fbf81e99e91bf6c9ae68346eefb021828 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 Jul 2016 13:35:50 -0400 Subject: remove a bunch of code that will no longer be used --- libs/ardour/ardour/session.h | 8 ------- libs/ardour/session.cc | 52 -------------------------------------------- 2 files changed, 60 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index febfc2eb2f..ebafdd82f6 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -302,10 +302,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop }; void notify_presentation_info_change (); - void clear_stripable_selection (); - void toggle_stripable_selection (boost::shared_ptr); - void add_stripable_selection (boost::shared_ptr); - void set_stripable_selection (boost::shared_ptr); template void foreach_route (T *obj, void (T::*func)(Route&), bool sort = true); template void foreach_route (T *obj, void (T::*func)(boost::shared_ptr), bool sort = true); @@ -822,9 +818,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop boost::shared_ptr monitor_out() const { return _monitor_out; } boost::shared_ptr master_out() const { return _master_out; } - boost::weak_ptr get_editor_mixer() const { return _editor_mixer; } - void set_editor_mixer (boost::weak_ptr r) { _editor_mixer = r; EditorMixerChanged(); } - static PBD::Signal0 EditorMixerChanged; void globally_add_internal_sends (boost::shared_ptr dest, Placement p, bool); void globally_set_send_gains_from_track (boost::shared_ptr dest); @@ -1874,7 +1867,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop boost::shared_ptr _master_out; boost::shared_ptr _monitor_out; - boost::weak_ptr _editor_mixer; void auto_connect_master_bus (); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 677aca249e..a910cf996a 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -7007,55 +7007,3 @@ Session::auto_connect_thread_run () } pthread_mutex_unlock (&_auto_connect_mutex); } - -void -Session::clear_stripable_selection () -{ - StripableList sl; - get_stripables (sl); - - for (StripableList::iterator si = sl.begin(); si != sl.end(); ++si) { - (*si)->presentation_info().set_selected (false); - } - -} - -void -Session::toggle_stripable_selection (boost::shared_ptr s) -{ - s->presentation_info().set_selected (!s->presentation_info().selected()); -} - -void -Session::add_stripable_selection (boost::shared_ptr s) -{ - if (!s->presentation_info().selected ()) { - s->presentation_info().set_selected (true); - } -} - -void -Session::set_stripable_selection (boost::shared_ptr s) -{ - StripableList sl; - bool change = false; - - get_stripables (sl); - - for (StripableList::iterator si = sl.begin(); si != sl.end(); ++si) { - if ((*si)->presentation_info().selected()) { - change = true; - } - - (*si)->presentation_info().set_selected (false); - } - - if (!s->presentation_info().selected()) { - change = true; - s->presentation_info().set_selected (true); - } - - if (change) { - // PresentationInfo::SelectionChange (); /* EMIT SIGNAL */ - } -} -- cgit v1.2.3