Use selection->regions instead of Editor::get_regions_from_selection()
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Wed, 3 Apr 2013 15:54:32 +0000 (16:54 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Wed, 3 Apr 2013 16:04:04 +0000 (17:04 +0100)
Remove Editor::get_regions_from_selection(), and use selection->regions
directly in the few places it was called.

gtk2_ardour/editor.cc
gtk2_ardour/editor.h
gtk2_ardour/editor_ops.cc
gtk2_ardour/rhythm_ferret.cc

index 4f3390e752428b213fc2d0cd6f748d5eb22f4028..94e69a6968ab66397750bfd1bfad228969e18b66 100644 (file)
@@ -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
index 8ecd5cc07de48dba5ed7ecaeb89b6e4d2788bdf3..6155dea745b4cf0972d623f751d5c173a93ae539 100644 (file)
@@ -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 ();
 
index 415614b81166718ccc1858b3b8d4d32018db6f7a..9797c0ef7ee612a30af8d7e002d2e9ee2ef75fad 100644 (file)
@@ -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()) {
index bad603b03038039870bfad0f66ea70794223507e..5a59b5ce5dfc3979e6e06c37e2387626e52f8a83 100644 (file)
@@ -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;