Remove Cruft
authorRobin Gareus <robin@gareus.org>
Sat, 17 Jun 2017 12:55:32 +0000 (14:55 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 17 Jun 2017 13:52:03 +0000 (15:52 +0200)
gtk2_ardour/editor_routes.cc
gtk2_ardour/editor_selection.cc
gtk2_ardour/mixer_ui.cc

index aaa7daf80f074a007d10a8f7b7498ab2a28622ae..35d98e3c57728f3e372838afe89b07388c37beaf 100644 (file)
@@ -1007,8 +1007,6 @@ EditorRoutes::sync_presentation_info_from_treeview ()
        bool change = false;
        PresentationInfo::order_t order = 0;
 
-       TreeOrderKeys sorted;
-
        PresentationInfo::ChangeSuspender cs;
 
        for (ri = rows.begin(); ri != rows.end(); ++ri) {
@@ -1028,8 +1026,6 @@ EditorRoutes::sync_presentation_info_from_treeview ()
                        stripable->set_presentation_order (order);
                        change = true;
                }
-
-               sorted.push_back (TreeOrderKey (order, stripable));
                ++order;
        }
 
@@ -1116,18 +1112,12 @@ EditorRoutes::sync_treeview_from_presentation_info (PropertyChange const & what_
                 * already updated itself.
                 */
 
-               TrackViewList tvl;
                PBD::Unwinder<bool> uw (_ignore_selection_change, true);
-
                /* set the treeview model selection state */
 
                for (TreeModel::Children::iterator ri = rows.begin(); ri != rows.end(); ++ri) {
                        boost::shared_ptr<Stripable> stripable = (*ri)[_columns.stripable];
                        if (stripable && stripable->is_selected()) {
-                               TimeAxisView* tav = (*ri)[_columns.tv];
-                               if (tav) {
-                                       tvl.push_back (tav);
-                               }
                                _display.get_selection()->select (*ri);
                        } else {
                                _display.get_selection()->unselect (*ri);
index 82c9020e9ae2bb8d882da68dbb4f5a5886ff2087..087fcf74e0b5ffaf9391cb4800ef4803e5f82dfd 100644 (file)
@@ -1019,10 +1019,6 @@ Editor::presentation_info_changed (PropertyChange const & what_changed)
        /* STEP 2: update TimeAxisView's knowledge of their selected state
         */
 
-
-       PropertyChange pc;
-       pc.add (Properties::selected);
-
        if (what_changed.contains (Properties::selected)) {
 
                StripableNotificationListPtr stripables (new StripableNotificationList);
index 39ab929c8ee80a6ddebb6c2ec2a58395c8ab2998..7d2d0885c8c3f46dc797dcf589c62014f0d40564 100644 (file)
@@ -716,9 +716,6 @@ Mixer_UI::sync_presentation_info_from_treeview ()
 
        PresentationInfo::order_t master_key = _session->master_order_key ();
        PresentationInfo::order_t order = 0;
-       uint32_t count = 0;
-
-       TreeOrderKeys sorted;
 
        PresentationInfo::ChangeSuspender cs;
 
@@ -752,10 +749,7 @@ Mixer_UI::sync_presentation_info_from_treeview ()
                        stripable->set_presentation_order (order);
                        change = true;
                }
-
-               sorted.push_back (TreeOrderKey (count, stripable));
                ++order;
-               ++count;
        }
 
        change |= _session->ensure_stripable_sort_order ();