[Lada-commits] [PATCH 01 of 10] Remove unused redundant arguments

Wald Commits scm-commit at wald.intevation.org
Thu Sep 29 16:54:42 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1474648552 -7200
# Node ID 6d26e94b643e6d5e7079e3e9d68cf266c989f3bb
# Parent  299f4ba86090a45311b5d6ece2dd0bc05fea1fe2
Remove unused redundant arguments.

diff -r 299f4ba86090 -r 6d26e94b643e src/main/java/de/intevation/lada/factory/ProbeFactory.java
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Wed Sep 28 09:06:18 2016 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Sep 23 18:35:52 2016 +0200
@@ -85,15 +85,15 @@
 
         if ("M".equals(messprogramm.getProbenintervall())) {
             Calendar realStart = getStart ("M", start);
-            proben.addAll(generateMonth(messprogramm, realStart, end, "M"));
+            proben.addAll(generateMonth(messprogramm, realStart, end));
         }
         else if ("Q".equals(messprogramm.getProbenintervall())) {
             Calendar realStart = getStart ("Q", start);
-            proben.addAll(generateQuarter(messprogramm, realStart, end, "Q"));
+            proben.addAll(generateQuarter(messprogramm, realStart, end));
         }
         else if ("H".equals(messprogramm.getProbenintervall())) {
             Calendar realStart = getStart ("H", start);
-            proben.addAll(generateHalf(messprogramm, realStart, end, "H"));
+            proben.addAll(generateHalf(messprogramm, realStart, end));
         }
         else {
             Date[][] intervals = calculateIntervals(start, end, messprogramm);
@@ -159,8 +159,7 @@
     private List<LProbe> generateMonth(
         Messprogramm messprogramm,
         Calendar start,
-        Calendar end,
-        String interval
+        Calendar end
     ) {
         int offset = messprogramm.getIntervallOffset() == null ?
             0 : messprogramm.getIntervallOffset();
@@ -205,8 +204,7 @@
     private List<LProbe> generateQuarter(
         Messprogramm messprogramm,
         Calendar start,
-        Calendar end,
-        String interval
+        Calendar end
     ) {
         int offset = messprogramm.getIntervallOffset() == null ?
             0 : messprogramm.getIntervallOffset();
@@ -251,8 +249,7 @@
     private List<LProbe> generateHalf(
         Messprogramm messprogramm,
         Calendar start,
-        Calendar end,
-        String interval
+        Calendar end
     ) {
         int offset = messprogramm.getIntervallOffset() == null ?
             0 : messprogramm.getIntervallOffset();


More information about the Lada-commits mailing list