[Lada-commits] [PATCH 1 of 3] Remove unused private methods
Wald Commits
scm-commit at wald.intevation.org
Tue Oct 11 16:39:28 CEST 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1476109512 -7200
# Node ID b782a10c5b28fb128bc5614d6c9f125d0434bc6d
# Parent e544d76a311f84baaba805d1613ffa39c4b981ee
Remove unused private methods.
diff -r e544d76a311f -r b782a10c5b28 src/main/java/de/intevation/lada/factory/ProbeFactory.java
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java Sat Oct 01 13:55:31 2016 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java Mon Oct 10 16:25:12 2016 +0200
@@ -343,47 +343,6 @@
return proben;
}
- private List<LProbe> generate(
- Messprogramm messprogramm,
- Calendar start,
- Calendar end,
- int days
- ) {
- int offset = messprogramm.getIntervallOffset();
- int startDay = start.get(Calendar.DAY_OF_YEAR) +
- messprogramm.getTeilintervallVon() - 1 + offset;
- int endDay = end.get(Calendar.DAY_OF_YEAR);
-
- List<LProbe> proben = new ArrayList<LProbe>();
- int duration = messprogramm.getTeilintervallBis() -
- messprogramm.getTeilintervallVon();
-
- logger.debug("real start day: " + startDay);
- logger.debug("real end day" + endDay);
- for (;startDay <= endDay;) {
- logger.debug("generate from " + startDay);
- start.set(Calendar.DAY_OF_YEAR, startDay);
- end.set(Calendar.DAY_OF_YEAR, startDay + duration);
- logger.debug("from: " + start.getTime() + " to " + end.getTime());
- startDay += days;
- LProbe probe = createObjects(
- messprogramm, start.getTime(), end.getTime());
- if (probe != null) {
- proben.add(probe);
- }
- }
- return proben;
- }
-
- private Calendar getMonday(Calendar week) {
- if (week.get(Calendar.DAY_OF_WEEK) > 1) {
- week.set(Calendar.WEEK_OF_YEAR,
- week.get(Calendar.WEEK_OF_YEAR) + 1);
- }
- week.set(Calendar.DAY_OF_WEEK, week.getFirstDayOfWeek());
- return week;
- }
-
/**
* Create a single probe object.
*
More information about the Lada-commits
mailing list