-/** Given a track, find any other tracks that are in the same active route group with a given property.
- * @param basis Base track.
- * @param equivs Filled with the base track and the found tracks.
- * @param prop Property to look for in route groups.
- */
-
-void
-Editor::get_equivalent_tracks (RouteTimeAxisView* basis, set<RouteTimeAxisView*> & equivs, RouteGroup::Property prop) const
-{
- equivs.insert (basis);
-
- RouteGroup* group = basis->route()->route_group();
- if (group && group->active_property (prop)) {
-
- /* the basis is a member of an active route group, with the appropriate
- properties; find other members */
-
- for (TrackViewList::const_iterator i = track_views.begin(); i != track_views.end(); ++i) {
- RouteTimeAxisView* v = dynamic_cast<RouteTimeAxisView*> (*i);
- if (v && v->route()->route_group() == group) {
- equivs.insert (v);
- }
- }
- }
-}
-
-/** Find tracks that are selected, and also those that are in the same `selection'-enabled route
- * group as one that is selected.
- * @param relevant_tracks set to add tracks to.
- */
-
-void
-Editor::get_relevant_tracks (set<RouteTimeAxisView*>& relevant_tracks) const
-{
- for (TrackSelection::iterator ti = selection->tracks.begin(); ti != selection->tracks.end(); ++ti) {
- RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*ti);
- if (rtv) {
- get_equivalent_tracks (rtv, relevant_tracks, RouteGroup::Select);
- }
- }
-}
-