summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-05 22:16:14 +0000
committerDavid Robillard <d@drobilla.net>2008-10-05 22:16:14 +0000
commitc208dd6866916e3ee6158002cc621cd6fa1a66bb (patch)
tree5871233f05ae70d3068cee8e8e42e6162c109237
parenta7889391b08f23b53d6cf94569291102dbac69bb (diff)
downloadingen-c208dd6866916e3ee6158002cc621cd6fa1a66bb.tar.gz
ingen-c208dd6866916e3ee6158002cc621cd6fa1a66bb.tar.bz2
ingen-c208dd6866916e3ee6158002cc621cd6fa1a66bb.zip
Remove cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1620 a436a847-0d15-0410-975c-d299462d15a1
-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();