diff artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java @ 8765:a5e450af498b

(issue1838) Remove method in RiverUtils.
author Tom Gottfried <tom@intevation.de>
date Mon, 17 Aug 2015 11:06:23 +0200
parents 9483a5bf4219
children 5e38e2924c07
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java	Mon Aug 17 10:18:05 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java	Mon Aug 17 11:06:23 2015 +0200
@@ -234,33 +234,6 @@
     }
 
 
-    /**
-     * Get bounds for river of artifact.
-     * @param flysArtifact artifact which has a "river" data.
-     * @return double array. min is at[0], max at[1]. null if given artifact is null
-     */
-    public static double[] getRiverMinMax(D4EArtifact flysArtifact) {
-        if (flysArtifact == null) {
-            return null;
-        }
-
-        String riverName = flysArtifact.getDataAsString("river");
-
-        if (riverName == null) {
-            riverName = "";
-        }
-
-        log.debug("Search for the min/max distances of '" + riverName + "'");
-
-        // Why not use getRiver(flysArtifact) ?
-        River river = RiverFactory.getRiver(riverName);
-
-        return river != null
-            ? river.determineMinMaxDistance()
-            : null;
-    }
-
-
     public static double[] getKmFromTo(D4EArtifact flys) {
         String strFrom = flys.getDataAsString("ld_from");
         String strTo   = flys.getDataAsString("ld_to");

http://dive4elements.wald.intevation.org