crop_region_to_selection: remove redundant check for a Range
get_edit_op_range() already checks for the existence of a Range
This commit is contained in:
parent
256549e0c7
commit
62fd8ecd35
@ -3452,15 +3452,6 @@ Editor::separate_under_selected_regions ()
|
||||
void
|
||||
Editor::crop_region_to_selection ()
|
||||
{
|
||||
if (!selection->time.empty()) {
|
||||
|
||||
begin_reversible_command (_("Crop Regions to Time Selection"));
|
||||
for (std::list<TimelineRange>::iterator i = selection->time.begin(); i != selection->time.end(); ++i) {
|
||||
crop_region_to ((*i).start(), (*i).end());
|
||||
}
|
||||
commit_reversible_command();
|
||||
} else {
|
||||
|
||||
timepos_t start;
|
||||
timepos_t end;
|
||||
|
||||
@ -3473,8 +3464,6 @@ Editor::crop_region_to_selection ()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
Editor::crop_region_to (timepos_t const & start, timepos_t const & end)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user