diff options
author | Robin Gareus <robin@gareus.org> | 2017-11-23 10:51:20 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-11-23 10:51:20 +0100 |
commit | c59136813393d782260265bd2c8dc923fc04e238 (patch) | |
tree | be655384479430796f84a72ff0bc8c578046ebdb /gtk2_ardour/editor_ops.cc | |
parent | 5e04e288a0ffb1f126692423218ad4cc5c520726 (diff) |
Remove unreachable code.
if (working_on_selection) {
...
} else {
if (working_on_selection) { .. never reached .. }
}
Found by PVS: https://www.viva64.com/en/b/0540/
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 4 |
1 files changed, 0 insertions, 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 (); |