summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/InputPort.cpp13
-rw-r--r--src/engine/InputPort.hpp1
-rw-r--r--src/engine/events/ConnectionEvent.cpp1
-rw-r--r--src/engine/events/DisconnectionEvent.cpp1
4 files changed, 0 insertions, 16 deletions
diff --git a/src/engine/InputPort.cpp b/src/engine/InputPort.cpp
index cf5501ca..9f62bcb0 100644
--- a/src/engine/InputPort.cpp
+++ b/src/engine/InputPort.cpp
@@ -173,19 +173,6 @@ InputPort::remove_connection(const OutputPort* src_port)
}
-/** Returns whether this port is connected to the passed port.
- */
-/*bool
-InputPort::is_connected_to(const OutputPort* port) const
-{
- for (Connections::const_iterator i = _connections.begin(); i != _connections.end(); ++i)
- if ((*i)->src_port() == port)
- return true;
-
- return false;
-}*/
-
-
/** Prepare buffer for access, mixing if necessary. Realtime safe.
* FIXME: nframes parameter not used,
*/
diff --git a/src/engine/InputPort.hpp b/src/engine/InputPort.hpp
index 2617882f..6eca20f4 100644
--- a/src/engine/InputPort.hpp
+++ b/src/engine/InputPort.hpp
@@ -71,7 +71,6 @@ public:
void post_process(ProcessContext& context);
bool is_connected() const { return (_connections.size() > 0); }
- //bool is_connected_to(const OutputPort* port) const;
bool is_input() const { return true; }
bool is_output() const { return false; }
diff --git a/src/engine/events/ConnectionEvent.cpp b/src/engine/events/ConnectionEvent.cpp
index 24b80dee..772679fa 100644
--- a/src/engine/events/ConnectionEvent.cpp
+++ b/src/engine/events/ConnectionEvent.cpp
@@ -111,7 +111,6 @@ ConnectionEvent::pre_process()
assert(_patch);
- //if (_dst_input_port->is_connected_to(_src_output_port)) {
if (_patch->has_connection(_src_output_port, _dst_input_port)) {
_error = ALREADY_CONNECTED;
QueuedEvent::pre_process();
diff --git a/src/engine/events/DisconnectionEvent.cpp b/src/engine/events/DisconnectionEvent.cpp
index 86ad8b4e..d98718e9 100644
--- a/src/engine/events/DisconnectionEvent.cpp
+++ b/src/engine/events/DisconnectionEvent.cpp
@@ -121,7 +121,6 @@ DisconnectionEvent::pre_process()
assert(_patch);
- //if (_dst_input_port->is_connected_to(_src_output_port)) {
if (!_patch->has_connection(_src_output_port, _dst_input_port)) {
_error = NOT_CONNECTED;
QueuedEvent::pre_process();