From 8e1488c76ef03d86618e979485bb5ee1cd495533 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 16 Mar 2012 15:05:00 +0000 Subject: [PATCH] remove now-unused Route::has_external_redirects() git-svn-id: svn://localhost/ardour2/branches/3.0@11704 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/route.h | 1 - libs/ardour/route.cc | 28 ---------------------------- libs/ardour/session.cc | 6 ------ 3 files changed, 35 deletions(-) diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index ee2fcadd1c..e8fbc0ed7d 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -429,7 +429,6 @@ class Route : public SessionObject, public Automatable, public RouteGroupMember, void catch_up_on_solo_mute_override (); void mod_solo_by_others_upstream (int32_t); void mod_solo_by_others_downstream (int32_t); - bool has_external_redirects() const; void curve_reallocate (); virtual void set_block_size (pframes_t nframes); diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 570c07e9f7..6f68f172a7 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2990,34 +2990,6 @@ Route::silent_roll (pframes_t nframes, framepos_t /*start_frame*/, framepos_t /* return 0; } -bool -Route::has_external_redirects () const -{ - // FIXME: what about sends? - they don't return a signal back to ardour? - - boost::shared_ptr pi; - - for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) { - - if ((pi = boost::dynamic_pointer_cast(*i)) != 0) { - - for (PortSet::const_iterator port = pi->output()->ports().begin(); port != pi->output()->ports().end(); ++port) { - - string port_name = port->name(); - string client_name = port_name.substr (0, port_name.find(':')); - - /* only say "yes" if the redirect is actually in use */ - - if (client_name != "ardour" && pi->active()) { - return true; - } - } - } - } - - return false; -} - void Route::flush_processors () { diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index feeac35e8a..2f57af4923 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3940,12 +3940,6 @@ Session::write_one_track (AudioTrack& track, framepos_t start, framepos_t end, goto out; } - /* external redirects will be a problem */ - - if (track.has_external_redirects()) { - goto out; - } - ext = native_header_format_extension (config.get_native_file_header_format(), DataType::AUDIO); for (uint32_t chan_n = 0; chan_n < diskstream_channels.n_audio(); ++chan_n) {