13
0

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:
Robin Gareus 2017-11-23 10:51:20 +01:00
parent 5e04e288a0
commit c591368133

View File

@ -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 (); commit_reversible_command ();