Remove unreachable code.
if (working_on_selection) {
...
} else {
if (working_on_selection) { .. never reached .. }
}
Found by PVS: https://www.viva64.com/en/b/0540/
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user