Cleaned up comments at the bottom.
@@ -219,38 +219,4 @@ public class SiriusExportTask extends AbstractTask
}
}
-// private DataPoint[] integerDataPoints(final DataPoint[] dataPoints,
-// final String mode)
-// {
-// int size = dataPoints.length;
-//
-// Map <Double, Double> integerDataPoints = new HashMap <> ();
-//
-// for (int i = 0; i < size; ++i)
-// {
-// double mz = (double) Math.round(dataPoints[i].getMZ());
-// double intensity = dataPoints[i].getIntensity();
-// Double prevIntensity = integerDataPoints.get(mz);
-// if (prevIntensity == null) prevIntensity = 0.0;
-//
-// switch (mode)
-// {
-// case SiriusExportParameters.ROUND_MODE_SUM:
-// integerDataPoints.put(mz, prevIntensity + intensity);
-// break;
-//
-// case SiriusExportParameters.ROUND_MODE_MAX:
-// integerDataPoints.put(mz, Math.max(prevIntensity, intensity));
-// break;
-// }
-// }
-//
-// DataPoint[] result = new DataPoint[integerDataPoints.size()];
-// int count = 0;
-// for (Entry <Double, Double> e : integerDataPoints.entrySet())
-// result[count++] = new SimpleDataPoint(e.getKey(), e.getValue());
-//
-// return result;
-// }
-
}
