Commit 7dcfb348 authored by Eric Duminil's avatar Eric Duminil
Browse files

Removed unused.

parent 0711c3e9
package eu.simstadt.regionchooser;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
......@@ -162,20 +161,6 @@ public static Stream<Path> everyCityGML(Path repository) throws IOException {
p.toString().toLowerCase().endsWith(".gml"));
}
public static void writeStringBuilderToFile(StringBuilder sb, Path outputFile) throws IOException {
if (outputFile != null) {
try (BufferedWriter writer = Files.newBufferedWriter(outputFile)) {
char[] chars = new char[BUFFER];
for (int aPosStart = 0; aPosStart < sb.length(); aPosStart += BUFFER) {
int chunk = Math.min(BUFFER, sb.length() - aPosStart);
sb.getChars(aPosStart, aPosStart + chunk, chars, 0);
writer.write(chars, 0, chunk);
}
}
}
}
/**
* Returns application version, if it has been written in the JAR file during deployment.
*
......
......@@ -244,7 +244,6 @@ var regionChooser = (function(){
console.log("Selected region is written in " + srsName + " coordinate system.");
try {
var count = fxapp.downloadRegionFromCityGMLs(sketchAsWKT(srsName), project, citygmlNames.join(";"), srsName);
//FIXME: count looks wrong. too high.
dataPanel.prepend("<h2 class='ok'>Done! (" + count + " buildings found) </h2><br/>\n");
} catch (e) {
console.warn("ERROR : " + e);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment