changeset 4477:79bb64f66c74

Remove dead code and warnings.
author Christian Lins <christian.lins@intevation.de>
date Tue, 13 Nov 2012 09:55:29 +0100
parents 099d136b215b
children 6153c50f78cf d9e3660fa462
files flys-aft/src/main/java/de/intevation/aft/DischargeTable.java flys-aft/src/main/java/de/intevation/aft/River.java flys-aft/src/main/java/de/intevation/db/Statements.java
diffstat 3 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/aft/DischargeTable.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/aft/DischargeTable.java	Tue Nov 13 09:55:29 2012 +0100
@@ -263,9 +263,6 @@
                 }
             }
 
-            double datumValue = rs.getDouble("PEGELNULLPUNKT");
-            Double datum = rs.wasNull() ? null : datumValue;
-
             TimeInterval timeInterval = new TimeInterval(from, to);
 
             DischargeTable dt = new DischargeTable(
--- a/flys-aft/src/main/java/de/intevation/aft/River.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/aft/River.java	Tue Nov 13 09:55:29 2012 +0100
@@ -366,8 +366,6 @@
     )
     throws SQLException
     {
-        boolean debug = log.isDebugEnabled();
-
         int [] flysDTIds = new int[dts.size()];
 
         for (int i = 0; i < flysDTIds.length; ++i) {
--- a/flys-aft/src/main/java/de/intevation/db/Statements.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/db/Statements.java	Tue Nov 13 09:55:29 2012 +0100
@@ -45,7 +45,7 @@
 
         Properties properties = loadProperties();
 
-        for (Enumeration e = properties.propertyNames(); e.hasMoreElements();) {
+        for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements();) {
             String key = (String)e.nextElement();
             String value = properties.getProperty(key);
             SymbolicStatement symbolic = new SymbolicStatement(value);

http://dive4elements.wald.intevation.org