Commit fe9cb4bb authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Remove obsolete function

parent 6310cfc3
......@@ -52,8 +52,4 @@ public class CacheManager {
return new UnconnectedCache();
}
public static void preCacheFeatures(List<GmlId> features) {
cache.preCacheFeatures(features);
}
}
......@@ -14,7 +14,6 @@ import org.apache.commons.lang3.SerializationUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.h2gis.functions.factory.H2GISDBFactory;
import org.h2gis.utilities.wrapper.ConnectionWrapper;
import org.h2gis.utilities.wrapper.DataSourceWrapper;
import java.io.ByteArrayInputStream;
......
......@@ -89,10 +89,6 @@ public class FeatureCache implements CityObjectCache{
public void preCacheFeatures(List<GmlId> ids) {
cache.getAll(ids);
}
@Override
public void replace(GmlId id, CityObject cityObject) {
cache.invalidate(id);
......
......@@ -199,19 +199,6 @@ public class CityDoctorModel {
}
}
public void preCacheShownFeatures(){
List<GmlId> features = new ArrayList<>();
features.addAll(buildings.subList(0,Math.min(buildings.size(),200)));
features.addAll(vegetation.subList(0,Math.min(vegetation.size(),200)));
features.addAll(bridges.subList(0,Math.min(bridges.size(),200)));
features.addAll(land.subList(0,Math.min(land.size(),200)));
features.addAll(roads.subList(0,Math.min(roads.size(),200)));
features.addAll(tunnels.subList(0,Math.min(tunnels.size(),200)));
features.addAll(water.subList(0,Math.min(water.size(),200)));
features.addAll(cityfurniture.subList(0,Math.min(cityfurniture.size(),200)));
features.addAll(genericObjects.subList(0,Math.min(genericObjects.size(),200)));
CacheManager.preCacheFeatures(features);
}
private void exportAsGML(String file) throws CityDoctorWriteException {
CityGMLWriterUtils.writeCityModel(file, this);
......
Supports Markdown
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