changeset 8618:42fc26e463db

Remove another obsolete check for an unused (and removed) config value
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Mar 2015 18:23:22 +0100
parents b8493c4bdf0c
children 156980fb3cb9
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/MinMaxState.java
diffstat 1 files changed, 1 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/MinMaxState.java	Wed Mar 25 18:22:34 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/MinMaxState.java	Wed Mar 25 18:23:22 2015 +0100
@@ -47,7 +47,7 @@
             "art:type",
             getType());
 
-        String[] defMinMax = getDefaults(artifact, name);
+        String[] defMinMax = getMinMaxDefaults(artifact, name);
 
         Element min = ProtocolUtils.createArtNode(
             creator,
@@ -107,30 +107,6 @@
 
 
     /**
-     * This method returns the default values for min and max. If the static
-     * field DefaultState.USE_DEFAULTS is set, the minimum and maximum inserted
-     * by the user is returned as string. Otherwise, the absolute minimum and
-     * maximum are returned.
-     *
-     * @param artifact The D4EArtifact.
-     * @param name The name of the parameter.
-     *
-     * @return a string array [min,max] that contains the minimum and maximum
-     * values for the parameter <i>name</i>.
-     */
-    protected String[] getDefaults(Artifact artifact, String name) {
-        if (DefaultState.USE_DEFAULTS) {
-            String[] tmp = getMinMaxByParameter(artifact, name);
-
-            return tmp != null ? tmp : getMinMaxDefaults(artifact, name);
-        }
-        else {
-            return getMinMaxDefaults(artifact, name);
-        }
-    }
-
-
-    /**
      * Returns a string array with minimum and maximum inserted by the user as
      * [min,max].
      *

http://dive4elements.wald.intevation.org