From c59136813393d782260265bd2c8dc923fc04e238 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Nov 2017 10:51:20 +0100 Subject: [PATCH] Remove unreachable code. if (working_on_selection) { ... } else { if (working_on_selection) { .. never reached .. } } Found by PVS: https://www.viva64.com/en/b/0540/ --- gtk2_ardour/editor_ops.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index be52230ff8..8557562a53 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -310,10 +310,6 @@ Editor::split_regions_at (MusicSample where, RegionSelection& regions, bool snap } } } - } else { - if( working_on_selection ) { - selection->add (latest_regionviews); //these are the new regions created after the split - } } commit_reversible_command ();