cleaning code 2
This commit is contained in:
parent
88ac471696
commit
a560dff59d
2 changed files with 1 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue