# HG changeset patch # User Andre Heinecke # Date 1433777991 -7200 # Node ID c4654863108d5c3237156726f6e4bcdac8bfaf21 # Parent 36d7bda0b47ab7ff847195ed1d758dbb77f14221 Remove unused variable and microoptimize loop variables. diff -r 36d7bda0b47a -r c4654863108d artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java --- a/artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java Mon Jun 08 16:53:54 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java Mon Jun 08 17:39:51 2015 +0200 @@ -625,9 +625,7 @@ int N = dataset.getItemCount(0); int M = dataset.getItemCount(1); - int i = 0, j = 0; - boolean haveNaN = false; - for (; i < N; ++i) { + for (int i = 0; i < N; ++i) { double x = dataset.getXValue(0, i); double y = dataset.getYValue(0, i); if (Double.isNaN(x) || Double.isNaN(y)) { @@ -635,7 +633,7 @@ } } - for (; j < M; ++j) { + for (int j = 0; j < M; ++j) { double x = dataset.getXValue(1, j); double y = dataset.getYValue(1, j); if (Double.isNaN(x) || Double.isNaN(y)) {