try not thinning when loading old-school automation lists
[ardour.git] / libs / ardour / send.cc
index ce48b2712bad053152a822c17cfebaba13c97708..677b8c2e3b6f7e3f6fdf5e30cf3d291a35c38511 100644 (file)
 #include "ardour/amp.h"
 #include "ardour/send.h"
 #include "ardour/session.h"
-#include "ardour/port.h"
-#include "ardour/audio_port.h"
 #include "ardour/buffer_set.h"
 #include "ardour/meter.h"
-#include "ardour/panner.h"
 #include "ardour/io.h"
 
 #include "i18n.h"
 
+namespace ARDOUR {
+class AutomationControl;
+class MuteMaster;
+class Pannable;
+}
+
 using namespace ARDOUR;
 using namespace PBD;
 using namespace std;
@@ -85,26 +88,6 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
        add_control (_amp->gain_control ());
 }
 
-Send::Send (Session& s, const std::string& name, uint32_t bslot, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, Role r)
-       : Delivery (s, p, mm, name, r)
-       , _metering (false)
-       , _bitslot (bslot)
-{
-       if (_role == Listen) {
-               /* we don't need to do this but it keeps things looking clean
-                  in a debugger. _bitslot is not used by listen sends.
-               */
-               _bitslot = 0;
-       }
-
-       boost_debug_shared_ptr_mark_interesting (this, "send");
-
-       _amp.reset (new Amp (_session));
-       _meter.reset (new PeakMeter (_session));
-
-       add_control (_amp->gain_control ());
-}
-
 Send::~Send ()
 {
         _session.unmark_send_id (_bitslot);
@@ -315,18 +298,6 @@ Send::configure_io (ChanCount in, ChanCount out)
        return true;
 }
 
-/** Set up the XML description of a send so that we will not
- *  reset its name or bitslot during ::set_state()
- *  @param state XML send state.
- *  @param session Session.
- */
-void
-Send::make_unique (XMLNode &state)
-{
-       state.add_property ("ignore-bitslot", "1");
-       state.add_property ("ignore-name", "1");
-}
-
 bool
 Send::set_name (const string& new_name)
 {