changeset 2692:32b1e28edb15

Removed unused code. flys-artifacts/trunk@4396 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sun, 13 May 2012 21:39:55 +0000
parents a7a4d3b2e2b0
children edaa2297aea3
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java
diffstat 2 files changed, 5 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun May 13 21:28:38 2012 +0000
+++ b/flys-artifacts/ChangeLog	Sun May 13 21:39:55 2012 +0000
@@ -1,3 +1,8 @@
+2012-05-13  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java:
+	  Removed unused code. 
+
 2012-05-13  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Sun May 13 21:28:38 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Sun May 13 21:39:55 2012 +0000
@@ -46,12 +46,6 @@
     private static Logger logger =
         Logger.getLogger(DurationCurveGenerator.class);
 
-    public static final String I18N_DURATION_W =
-        "chart.duration.curve.curve.w";
-
-    public static final String I18N_DURATION_Q =
-        "chart.duration.curve.curve.q";
-
     public static final String I18N_CHART_TITLE =
         "chart.duration.curve.title";
 
@@ -292,39 +286,6 @@
     }
 
 
-    /**
-     * Creates an i18ed name for a (w or q) duration curve facet.
-     * @param river rivername, included in facet name.
-     * @param type either DURATION_W, DURATION_Q
-     */
-    protected String getSeriesName(String river, String type) {
-        // TODO include km in duration curves facet name.
-        Object[] args = new Object[] { river };
-
-        if (type == null || type.length() == 0) {
-            logger.warn("No duration curve type given.");
-            return "n/a";
-        }
-        else if (type.equals(DURATION_W)) {
-            return Resources.getMsg(
-                context.getMeta(),
-                I18N_DURATION_W,
-                "W",
-                args);
-        }
-        else if (type.equals(DURATION_Q)) {
-            return Resources.getMsg(
-                context.getMeta(),
-                I18N_DURATION_Q,
-                "W",
-                args);
-        }
-
-        logger.warn("Could not determine chart curve type: " + type);
-        return type;
-    }
-
-
     @Override
     protected YAxisWalker getYAxisWalker() {
         return new YAxisWalker() {

http://dive4elements.wald.intevation.org