13
0

Remove Cruft

This commit is contained in:
Robin Gareus 2017-06-17 14:55:32 +02:00
parent c02a3413e1
commit f77540120c
3 changed files with 0 additions and 20 deletions

View 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);

View 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);

View 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 ();