[PATCH] Remove code that was previously commented out

Wald Commits scm-commit at wald.intevation.org
Wed Oct 16 14:43:31 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1381927407 -7200
# Node ID d12478cc5bb0f7a2557e6a15aca3f5fb78376c6d
# Parent  809e76b7fe38c2a8ba0f0171edbb014188479a09
Remove code that was previously commented out.

diff -r 809e76b7fe38 -r d12478cc5bb0 backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Wed Oct 16 14:40:19 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Wed Oct 16 14:43:27 2013 +0200
@@ -63,7 +63,6 @@
 
         catch (ParseException e) {
             // We expect a lot of ";;;;;;" lines.
-            //log.warn("BSP: Error while parsing km of data row.", e);
             return;
         }
 
@@ -73,15 +72,6 @@
             return;
         }
 
-        // Because we cannot enforce consistency of values with complete data
-        // via null constraints in the database (as there are "gap" values),
-        // do this checks manually.
-	//        if (values[3].length() == 0 || values[4].length() == 0
-	//  || values[5].length() == 0) {
-            //log.warn("BSP: Error while parsing data row (manual null constraint violated).");
-	//  return;
-        //}
-
 	Double height = null;
 	if (values[1].length() > 0) {
 	    try {
@@ -132,39 +122,17 @@
 	    }
 	}
 
-	//        try {
 	ImportBedHeightSingleValue value = new ImportBedHeightSingleValue(
 	    (ImportBedHeightSingle) obj,
 	    km,
-	    height,//new Double(nf.parse(values[1]).doubleValue()),
+	    height,
 	    uncertainty,
 	    dataGap,
 	    soundingWidth,
-	    //                parseBigDecimal(values[4], line),
 	    width
 	);
 
 	obj.addValue(value);
-        // }
-//         catch (ParseException e) {
-//             log.warn("BSP: unparseable value in data row.", e);
-        //}
     }
-
-//     private BigDecimal parseBigDecimal(String value, String line) {
-//         BigDecimal result = null;
-//         try {
-//             Double dValue = Double.valueOf(value.replace(",", "."));
-//             result = new BigDecimal(dValue.doubleValue());
-//         }
-//         catch (NumberFormatException nfe) {
-//             log.warn(
-//                 "Could not parse " +
-//                 value +
-//                 " in bed heigt single row: "
-//                 + line);
-//         }
-//        return result;
-//    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list