changeset 8617:b8493c4bdf0c

Remove duplicated code. This is an exact copy of the createItem method from the base class.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Mar 2015 18:22:34 +0100
parents 594b0bbc7011
children 42fc26e463db
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java	Wed Mar 25 18:12:16 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java	Wed Mar 25 18:22:34 2015 +0100
@@ -121,24 +121,6 @@
 
     }
 
-
-    protected Element createItem(XMLUtils.ElementCreator cr, Object obj) {
-        Element item  = ProtocolUtils.createArtNode(cr, "item", null, null);
-        Element label = ProtocolUtils.createArtNode(cr, "label", null, null);
-        Element value = ProtocolUtils.createArtNode(cr, "value", null, null);
-
-        String[] arr = (String[]) obj;
-
-        label.setTextContent(arr[0]);
-        value.setTextContent(arr[1]);
-
-        item.appendChild(label);
-        item.appendChild(value);
-
-        return item;
-    }
-
-
     @Override
     protected double[] getMinMax(Artifact artifact) {
         D4EArtifact flysArtifact = (D4EArtifact) artifact;

http://dive4elements.wald.intevation.org