From 2cf0e94d16a7ceefb1ebdcf1982c3ab4269286a4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 28 May 2021 13:30:07 -0600 Subject: [PATCH] code cleanup of Editor::remove_gaps() (removing functionality derived from copy-n-paste of insert-time) --- gtk2_ardour/editor_ops.cc | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 30f5a01079..6df6b2e547 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -9005,29 +9005,18 @@ Editor::remove_gaps (samplecnt_t gap_threshold, samplecnt_t leave_gap) { bool in_command = false; TrackViewList ts = selection->tracks.filter_to_unique_playlists (); - bool all_playlists = false; for (TrackSelection::iterator x = ts.begin(); x != ts.end(); ++x) { /* don't operate on any playlist more than once, which could - * happen if "all playlists" is enabled, but there is more - * than 1 track using playlists "from" a given track. + * happen if there is more than 1 track using the same + * playlist. */ set > pl; - if (all_playlists) { - RouteTimeAxisView* rtav = dynamic_cast (*x); - if (rtav && rtav->track ()) { - vector > all = _session->playlists()->playlists_for_track (rtav->track ()); - for (vector >::iterator p = all.begin(); p != all.end(); ++p) { - pl.insert (*p); - } - } - } else { - if ((*x)->playlist ()) { - pl.insert ((*x)->playlist ()); - } + if ((*x)->playlist ()) { + pl.insert ((*x)->playlist ()); } for (set >::iterator i = pl.begin(); i != pl.end(); ++i) {