cleaning code 2

This commit is contained in:
madwasp79 2019-05-21 17:26:49 +03:00
parent 88ac471696
commit a560dff59d
2 changed files with 1 additions and 12 deletions

View file

@ -63,13 +63,6 @@ public class RoutingConfiguration {
// impassableRoadLocations.add(23000069L);
// }
public void updateRouters(Builder update) {
defaultRouter = update.defaultRouter;
routers.putAll(update.routers);
attributes.putAll(update.attributes);
impassableRoadLocations.putAll(update.impassableRoadLocations);
}
public RoutingConfiguration build(String router, int memoryLimitMB) {
return build(router, null, memoryLimitMB, null);
}

View file

@ -815,11 +815,7 @@ public class OsmandApplication extends MultiDexApplication {
}
public void updateRoutingConfig(Builder update) {
if (routingConfig != null) {
final RoutingConfiguration.Builder b = routingConfig;
b.updateRouters(update);
routingConfig = b;
}
routingConfig = update;
}
public OsmandRegions getRegions() {