changeset 7355:d12478cc5bb0

Remove code that was previously commented out.
author Tom Gottfried <tom@intevation.de>
date Wed, 16 Oct 2013 14:43:27 +0200
parents 809e76b7fe38
children 534850c9fabc
files backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java
diffstat 1 files changed, 1 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- 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 :

http://dive4elements.wald.intevation.org