From bf1243df0ba0255269173c9bd74e292f5f5934d0 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Tue, 20 May 2014 09:10:05 +0100 Subject: Removed some commented out code --- src/jcgp/gui/population/ChromosomePane.java | 13 ------------- src/jcgp/gui/population/GUINode.java | 3 --- 2 files changed, 16 deletions(-) (limited to 'src/jcgp') 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() { @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(); -- cgit v1.2.3