aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jcgp/gui/population/ChromosomePane.java13
-rw-r--r--src/jcgp/gui/population/GUINode.java3
2 files changed, 0 insertions, 16 deletions
diff --git a/src/jcgp/gui/population/ChromosomePane.java b/src/jcgp/gui/population/ChromosomePane.java
index d40de2e..d9154fc 100644
--- a/src/jcgp/gui/population/ChromosomePane.java
+++ b/src/jcgp/gui/population/ChromosomePane.java
@@ -154,19 +154,6 @@ public class ChromosomePane extends ScrollPane {
updateValues();
}
-// public void evaluate(int start) {
-// if (start >= 0 || start < columns) {
-// for (int c = 0; c < columns; c++) {
-// for (int r = 0; r < rows; r++) {
-// guiNodes[r][c].updateText();
-// }
-// }
-// for (int o = 0; o < guiOutputs.length; o++) {
-// guiOutputs[o].updateText();
-// }
-// }
-// }
-
public void updateValues() {
for (int i = 0; i < guiInputs.length; i++) {
guiInputs[i].updateText();
diff --git a/src/jcgp/gui/population/GUINode.java b/src/jcgp/gui/population/GUINode.java
index d3ae27f..3fadbdd 100644
--- a/src/jcgp/gui/population/GUINode.java
+++ b/src/jcgp/gui/population/GUINode.java
@@ -129,7 +129,6 @@ public class GUINode extends GUIGene {
/*
* Mouse event handlers on whole gene
*/
-
addEventFilter(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
@@ -399,7 +398,6 @@ public class GUINode extends GUIGene {
node.setConnection(connectionIndex, newConnection);
if (parent.isEvaluating()) {
parent.updateValues();
-// parent.evaluate(node.getColumn());
}
}
@@ -462,7 +460,6 @@ public class GUINode extends GUIGene {
public void setFunction(Function function) {
node.setFunction(function);
if (parent.isEvaluating()) {
-// parent.evaluate(node.getColumn());
parent.updateValues();
} else {
updateText();