*** NEW CODING POLICY ***
[ardour.git] / libs / ardour / send.cc
index 252ca691befb27026f49a7b40fdd4d2a13237fdd..c41ca770f8ceb7b26eb0ff38d5aee905cc6d86de 100644 (file)
 
 #include <algorithm>
 
-#include <pbd/xml++.h>
+#include "pbd/xml++.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 "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"
 
@@ -54,42 +54,6 @@ Send::Send (Session& s, const XMLNode& node)
        ProcessorCreated (this); /* EMIT SIGNAL */
 }
 
-Send::Send (const Send& other)
-       : IOProcessor (other._session, string_compose (_("send %1"), (bitslot = other._session.next_send_id()) + 1), other.placement())
-{
-       _metering = false;
-
-       expected_inputs.set (DataType::AUDIO, 0);
-
-       /* set up the same outputs, and connect them to the same places */
-
-       _io->defer_pan_reset ();
-
-       for (uint32_t i = 0; i < other._io->n_outputs().get (_io->default_type()); ++i) {
-               _io->add_output_port ("", 0);
-               Port* p = other._io->output (i);
-               if (p) {
-                       /* this is what the other send's output is connected to */
-                       std::vector<std::string> connections;
-                       p->get_connections (connections);
-                       for (uint32_t j = 0; j < connections.size(); ++j) {
-                               _io->connect_output (_io->output (i), connections[j], 0);
-                       }
-               }
-       }
-       
-       /* setup panner */
-
-       _io->allow_pan_reset ();
-
-       XMLNode& other_state (other._io->panner().get_state ());
-       _io->panner().set_state (other_state);
-       
-       delete &other_state;
-
-       ProcessorCreated (this); /* EMIT SIGNAL */
-}
-
 Send::~Send ()
 {
        GoingAway ();