changeset 741:e54203e52097

Removed dead code. flys-artifacts/trunk@2240 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 26 Jun 2011 17:06:35 +0000
parents a1efe7d11423
children c09c9e05ecfa
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java
diffstat 2 files changed, 6 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun Jun 26 16:40:35 2011 +0000
+++ b/flys-artifacts/ChangeLog	Sun Jun 26 17:06:35 2011 +0000
@@ -1,3 +1,8 @@
+2011-06-26  Sascha L. Teichmann <sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java:
+	  Removed dead code.
+
 2011-06-26  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	Fix for flys/issue173
@@ -8,7 +13,7 @@
 	  the station point was inside the segments which is not
 	  necessarily true. The obvious solution to simply check
 	  the overlapping intervals does not work either because
-	  the gauge ranges touches each other and so more than
+	  the gauge ranges touch each other and so more than
 	  one gauge are returned in these cases. The River.maxOverlap()
 	  is now used to find the gauge with the max overlapping
 	  range.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Sun Jun 26 16:40:35 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Sun Jun 26 17:06:35 2011 +0000
@@ -925,42 +925,6 @@
         return qs;
     }
 
-    protected double [][] getRanges() {
-        logger.debug("getRanges");
-
-        StateData data = getData("wq_values");
-
-        if (data == null) {
-            logger.warn("Missing wq values!");
-            return new double [0][0];
-        }
-
-        String  dataString = (String)data.getValue();
-        String []   ranges = dataString.split(":");
-
-        ArrayList<double []> rs = new ArrayList<double []>();
-
-        for (String range: ranges) {
-            String [] parts = range.split(";");
-
-            if (parts.length < 2) {
-                logger.warn("invalid number of parts in range line");
-                continue;
-            }
-            try {
-                double from = Double.parseDouble(parts[0]);
-                double to   = Double.parseDouble(parts[1]);
-                rs.add(new double [] { from, to });
-            }
-            catch (NumberFormatException nfe) {
-                logger.warn("invalid double values in range line");
-            }
-        }
-
-        return rs.toArray(new double [rs.size()][]);
-    }
-
-
     /**
      * This method returns the given W or Q values for a specific range
      * (inserted in the WQ input panel for discharge longitudinal sections).

http://dive4elements.wald.intevation.org