aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/jsyn/ports/PortBlockPart.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/jsyn/ports/PortBlockPart.java')
-rw-r--r--src/main/java/com/jsyn/ports/PortBlockPart.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main/java/com/jsyn/ports/PortBlockPart.java b/src/main/java/com/jsyn/ports/PortBlockPart.java
index b1ced32..1b52d59 100644
--- a/src/main/java/com/jsyn/ports/PortBlockPart.java
+++ b/src/main/java/com/jsyn/ports/PortBlockPart.java
@@ -22,8 +22,6 @@ import com.jsyn.Synthesizer;
import com.jsyn.engine.SynthesisEngine;
import com.softsynth.shared.time.ScheduledCommand;
import com.softsynth.shared.time.TimeStamp;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Part of a multi-part port, for example, the left side of a stereo port.
@@ -32,8 +30,6 @@ import org.slf4j.LoggerFactory;
*/
public class PortBlockPart implements ConnectableOutput, ConnectableInput {
- private static final Logger LOGGER = LoggerFactory.getLogger(PortBlockPart.class);
-
private double[] values = new double[Synthesizer.FRAMES_PER_BLOCK];
private ArrayList<PortBlockPart> connections = new ArrayList<PortBlockPart>();
private UnitBlockPort unitBlockPort;
@@ -66,19 +62,12 @@ public class PortBlockPart implements ConnectableOutput, ConnectableInput {
}
private void addConnection(PortBlockPart otherPart) {
- // LOGGER.debug("addConnection from " + this + " to " + otherPart
- // );
- if (connections.contains(otherPart)) {
- LOGGER.debug("addConnection already had connection from " + this + " to "
- + otherPart);
- } else {
+ if (!connections.contains(otherPart)) {
connections.add(otherPart);
}
}
private void removeConnection(PortBlockPart otherPart) {
- // LOGGER.debug("removeConnection from " + this + " to " +
- // otherPart );
connections.remove(otherPart);
}