From: Paul Davis Date: Sat, 2 Jul 2016 20:08:38 +0000 (-0400) Subject: remove Session::get_nth_stripable.cc X-Git-Tag: 5.0-pre1~385 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=02db39c1bc63da52c21d77cc8f840d5d3233f301 remove Session::get_nth_stripable.cc --- diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 5ec7e99cea..ebafdd82f6 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -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_by_name (std::string) const; boost::shared_ptr route_by_id (PBD::ID) const; - boost::shared_ptr get_nth_stripable (PresentationInfo::order_t n) const; boost::shared_ptr get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag) const; boost::shared_ptr get_remote_nth_route (PresentationInfo::order_t n) const; boost::shared_ptr route_by_selected_count (uint32_t cnt) const; diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 6ef78eacb6..8ec63f5714 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4229,24 +4229,6 @@ Session::get_remote_nth_route (PresentationInfo::order_t n) const return boost::dynamic_pointer_cast (get_remote_nth_stripable (n, PresentationInfo::Route)); } -boost::shared_ptr -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(); -} - boost::shared_ptr Session::get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag flags) const {