# HG changeset patch # User Felix Wolfsteller # Date 1336945195 0 # Node ID 32b1e28edb150c7206bf3f4775ddb35497ab433f # Parent a7a4d3b2e2b012a66900d046d0ce35d55bb0d50b Removed unused code. flys-artifacts/trunk@4396 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a7a4d3b2e2b0 -r 32b1e28edb15 flys-artifacts/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java: + Removed unused code. + 2012-05-13 Felix Wolfsteller * src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java: diff -r a7a4d3b2e2b0 -r 32b1e28edb15 flys-artifacts/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() {