changeset 8749:c4654863108d

Remove unused variable and microoptimize loop variables.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 08 Jun 2015 17:39:51 +0200
parents 36d7bda0b47a
children 69b0a71b4845
files artifacts/src/main/java/org/dive4elements/river/jfree/StableXYDifferenceRenderer.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)) {

http://dive4elements.wald.intevation.org