remove now-unused Route::has_external_redirects()
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 16 Mar 2012 15:05:00 +0000 (15:05 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 16 Mar 2012 15:05:00 +0000 (15:05 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11704 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/route.h
libs/ardour/route.cc
libs/ardour/session.cc

index ee2fcadd1c4f8fe97cdaac73b9e84c81cf761950..e8fbc0ed7df9024a565d752a29ea665eb82724b6 100644 (file)
@@ -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);
 
index 570c07e9f70b545bff620261f0beb33a61d88a78..6f68f172a7c94d735b019656d94185f3b8b63216 100644 (file)
@@ -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<const PortInsert> pi;
-
-       for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) {
-
-               if ((pi = boost::dynamic_pointer_cast<const PortInsert>(*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 ()
 {
index feeac35e8ab123796f1eb320378abbebe6f25c28..2f57af4923f402cded3e1d95bfdb67ae47c529e6 100644 (file)
@@ -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) {