aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/jsyn/unitgen/UnitGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/jsyn/unitgen/UnitGenerator.java')
-rw-r--r--src/main/java/com/jsyn/unitgen/UnitGenerator.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/com/jsyn/unitgen/UnitGenerator.java b/src/main/java/com/jsyn/unitgen/UnitGenerator.java
index 7aacaf1..665b7b1 100644
--- a/src/main/java/com/jsyn/unitgen/UnitGenerator.java
+++ b/src/main/java/com/jsyn/unitgen/UnitGenerator.java
@@ -27,8 +27,6 @@ import com.jsyn.ports.UnitInputPort;
import com.jsyn.ports.UnitOutputPort;
import com.jsyn.ports.UnitPort;
import com.softsynth.shared.time.TimeStamp;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Base class for all unit generators.
@@ -37,8 +35,6 @@ import org.slf4j.LoggerFactory;
*/
public abstract class UnitGenerator {
- private static final Logger LOGGER = LoggerFactory.getLogger(UnitGenerator.class);
-
protected static final double VERY_SMALL_FLOAT = 1.0e-26;
// Some common port names.
@@ -147,7 +143,6 @@ public abstract class UnitGenerator {
while (unit.circuit != null) {
unit = unit.circuit;
}
- LOGGER.debug("getTopUnit " + this + " => " + unit);
return unit;
}
@@ -331,9 +326,7 @@ public abstract class UnitGenerator {
public void setPort(String portName, double value, TimeStamp timeStamp) {
UnitInputPort port = (UnitInputPort) getPortByName(portName);
// LOGGER.debug("setPort " + port );
- if (port == null) {
- LOGGER.warn("port was null for name " + portName + ", " + this.getClass().getName());
- } else {
+ if (port != null) {
port.set(value, timeStamp);
}
}