diff --git a/app/widget/timelinewidget/timelinewidget.cpp b/app/widget/timelinewidget/timelinewidget.cpp index 12d7bc0c4..f8b9cb73d 100644 --- a/app/widget/timelinewidget/timelinewidget.cpp +++ b/app/widget/timelinewidget/timelinewidget.cpp @@ -505,16 +505,11 @@ void TimelineWidget::DeleteSelected(bool ripple) { QList selected_list = GetSelectedBlocks(); QList blocks_to_delete; - QList tracks_affected; foreach (TimelineViewBlockItem* item, selected_list) { Block* b = item->block(); blocks_to_delete.append(b); - - if (!tracks_affected.contains(item->Track())) { - tracks_affected.append(item->Track()); - } } // No-op if nothing is selected diff --git a/app/widget/timelinewidget/timelinewidget.h b/app/widget/timelinewidget/timelinewidget.h index 2602aa97c..cb9bf5d64 100644 --- a/app/widget/timelinewidget/timelinewidget.h +++ b/app/widget/timelinewidget/timelinewidget.h @@ -103,6 +103,8 @@ public: void RestoreSplitterState(const QByteArray& state); + static void ReplaceBlocksWithGaps(const QList& blocks, bool remove_from_graph, QUndoCommand* command); + signals: void BlocksSelected(const QList& selected_blocks); @@ -460,8 +462,6 @@ private: void InsertGapsAt(const rational& time, const rational& length, QUndoCommand* command); - void ReplaceBlocksWithGaps(const QList& blocks, bool remove_from_graph, QUndoCommand* command); - void SetBlockLinksSelected(Block *block, bool selected); QVector GetEditToInfo(const rational &playhead_time, Timeline::MovementMode mode);