mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Use selection->regions instead of Editor::get_regions_from_selection()
Remove Editor::get_regions_from_selection(), and use selection->regions directly in the few places it was called.
This commit is contained in:
parent
ec6dd2dc8b
commit
f4a9c02b1d
4 changed files with 2 additions and 14 deletions
|
|
@ -4588,17 +4588,6 @@ Editor::get_regions_after (RegionSelection& rs, framepos_t where, const TrackVie
|
|||
}
|
||||
}
|
||||
|
||||
/** Start with regions that are selected. Then add equivalent regions
|
||||
* on tracks in the same active edit-enabled route group as any of
|
||||
* the regions that we started with.
|
||||
*/
|
||||
|
||||
RegionSelection
|
||||
Editor::get_regions_from_selection ()
|
||||
{
|
||||
return get_equivalent_regions (selection->regions, ARDOUR::Properties::select.property_id);
|
||||
}
|
||||
|
||||
/** Get regions using the following method:
|
||||
*
|
||||
* Make an initial region list using the selected regions, unless
|
||||
|
|
|
|||
|
|
@ -2042,7 +2042,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
void get_regions_at (RegionSelection&, framepos_t where, const TrackViewList& ts) const;
|
||||
void get_regions_after (RegionSelection&, framepos_t where, const TrackViewList& ts) const;
|
||||
|
||||
RegionSelection get_regions_from_selection ();
|
||||
RegionSelection get_regions_from_selection_and_edit_point ();
|
||||
RegionSelection get_regions_from_selection_and_entered ();
|
||||
|
||||
|
|
|
|||
|
|
@ -3737,7 +3737,7 @@ Editor::cut_copy (CutCopyOp op)
|
|||
/* we only want to cut regions if some are selected */
|
||||
|
||||
if (!selection->regions.empty()) {
|
||||
rs = get_regions_from_selection ();
|
||||
rs = selection->regions;
|
||||
}
|
||||
|
||||
switch (effective_mouse_mode()) {
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@ RhythmFerret::do_split_action ()
|
|||
performed on the selection only (without entered_regionview or the edit point
|
||||
being considered)
|
||||
*/
|
||||
RegionSelection regions = editor.get_regions_from_selection();
|
||||
RegionSelection regions = editor.selection->regions;
|
||||
|
||||
if (regions.empty()) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue