remove Session::get_nth_stripable.cc
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 2 Jul 2016 20:08:38 +0000 (16:08 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 2 Jul 2016 20:08:38 +0000 (16:08 -0400)
libs/ardour/ardour/session.h
libs/ardour/session.cc

index 5ec7e99cea0c84e476229db2b52b0fe5b94c404f..ebafdd82f67d97ca815b198edfc4288e12ec56d5 100644 (file)
@@ -311,7 +311,6 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
        bool io_name_is_legal (const std::string&) const;
        boost::shared_ptr<Route> route_by_name (std::string) const;
        boost::shared_ptr<Route> route_by_id (PBD::ID) const;
-       boost::shared_ptr<Stripable> get_nth_stripable (PresentationInfo::order_t n) const;
        boost::shared_ptr<Stripable> get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag) const;
        boost::shared_ptr<Route> get_remote_nth_route (PresentationInfo::order_t n) const;
        boost::shared_ptr<Route> route_by_selected_count (uint32_t cnt) const;
index 6ef78eacb63231ddd755f1f04e3b4b88291e49c4..8ec63f57141916973273ed910bc5f92b668a2910 100644 (file)
@@ -4229,24 +4229,6 @@ Session::get_remote_nth_route (PresentationInfo::order_t n) const
        return boost::dynamic_pointer_cast<Route> (get_remote_nth_stripable (n, PresentationInfo::Route));
 }
 
-boost::shared_ptr<Stripable>
-Session::get_nth_stripable (PresentationInfo::order_t n) const
-{
-       StripableList sl;
-
-       get_stripables (sl);
-
-       for (StripableList::const_iterator s = sl.begin(); s != sl.end(); ++s) {
-               if ((*s)->presentation_info().order() == n) {
-                       return *s;
-               }
-       }
-
-       /* there is no nth stripable */
-
-       return boost::shared_ptr<Stripable>();
-}
-
 boost::shared_ptr<Stripable>
 Session::get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag flags) const
 {