changeset 453:5aef92ea71a6

Removed dead code flys-artifacts/trunk@1949 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 19 May 2011 09:31:47 +0000
parents 343f248e4c8c
children 2c0c22e0935d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 5 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu May 19 09:24:08 2011 +0000
+++ b/flys-artifacts/ChangeLog	Thu May 19 09:31:47 2011 +0000
@@ -1,3 +1,8 @@
+2011-05-19	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
+	  Removed dead code.
+
 2011-05-19	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Thu May 19 09:24:08 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Thu May 19 09:31:47 2011 +0000
@@ -694,36 +694,5 @@
 
         wqkms.setName(wq + " Benutzerdefiniert" + sb.toString());
     }
-
-
-    /**
-     * Computes the data used for a discharge longitudinal section based on a
-     * given WQKms object. If there are backjumps while computing the data, a
-     * WQCKms object is returned, otherwise the incoming wqkms object.
-     *
-     * @param wqkms The WQKms object that contains W, Q and Kms.
-     *
-     * @return an instance of WQKms or WQCKms.
-     */
-    public static WQKms computeDischargeLongitudinalSectionData(WQKms wqkms) {
-        logger.info("WINFOArtifact.computeDischargeLongitudinalSectionData");
-
-        BackJumpCorrector bjc = new BackJumpCorrector();
-
-        bjc.doCorrection(wqkms.getKms(), wqkms.getWs());
-
-        if (bjc.hasBackJumps()) {
-            logger.info("Discharge longitudinal section has backjumps.");
-            return new WQCKms(
-                wqkms.getKms(),
-                wqkms.getQs(),
-                wqkms.getWs(),
-                bjc.getCorrected());
-        }
-        else {
-            logger.info("Discharge longitudinal section has no backjumps.");
-            return wqkms;
-        }
-    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org