summaryrefslogtreecommitdiff
path: root/gtk2_ardour/track_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-05-05 12:31:49 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-05-05 18:56:25 +0100
commitdc0139d4af4d246f6dcafb04425e3f1198c347c3 (patch)
tree096fa3207a951ec2d5e0338d207adac3f9872996 /gtk2_ardour/track_selection.cc
parent0c035778e162bd5934fc0070e43a26ffb4c8825a (diff)
use CoreSelection for track selection
Diffstat (limited to 'gtk2_ardour/track_selection.cc')
-rw-r--r--gtk2_ardour/track_selection.cc44
1 files changed, 0 insertions, 44 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc
index ac3d8b68e5..ad761ef4cd 100644
--- a/gtk2_ardour/track_selection.cc
+++ b/gtk2_ardour/track_selection.cc
@@ -39,47 +39,3 @@ TrackSelection::~TrackSelection ()
{
}
-TrackViewList
-TrackSelection::add (TrackViewList const & t)
-{
- TrackViewList added;
-
- for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) {
- if (dynamic_cast<VCATimeAxisView*> (*i)) {
- continue;
- }
-
- /* select anything in the same select-enabled route group */
- ARDOUR::RouteGroup* rg = (*i)->route_group ();
-
- if (rg && rg->is_active() && rg->is_select ()) {
-
- TrackViewList tr = _editor->axis_views_from_routes (rg->route_list ());
-
- for (TrackViewList::iterator j = tr.begin(); j != tr.end(); ++j) {
-
- /* Do not add the trackview passed in as an
- * argument, because we want that to be on the
- * end of the list.
- */
-
- if (*j != *i) {
- if (!contains (*j)) {
- added.push_back (*j);
- push_back (*j);
- }
- }
- }
- }
-
- /* now add the the trackview's passed in as actual arguments */
-
- if (!contains (*i)) {
- added.push_back (*i);
- push_back (*i);
- }
- }
-
-
- return added;
-}