diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-09 08:53:26 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-09 08:53:26 -0700 |
commit | 6f163bdf3856323a5aa075f9a2e1aeb01b7bc598 (patch) | |
tree | 353177ec93bc4c28c40fbc72d060e671ed3733db /src/main/java/org/traccar/Context.java | |
parent | 4dbe47a2362bde8e2a8419b202a02e5e7fc16f87 (diff) | |
download | trackermap-server-6f163bdf3856323a5aa075f9a2e1aeb01b7bc598.tar.gz trackermap-server-6f163bdf3856323a5aa075f9a2e1aeb01b7bc598.tar.bz2 trackermap-server-6f163bdf3856323a5aa075f9a2e1aeb01b7bc598.zip |
Remove more from context
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r-- | src/main/java/org/traccar/Context.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java index 1e158438f..46c761094 100644 --- a/src/main/java/org/traccar/Context.java +++ b/src/main/java/org/traccar/Context.java @@ -41,7 +41,6 @@ import org.traccar.model.Notification; import org.traccar.model.User; import org.traccar.notification.EventForwarder; import org.traccar.notification.NotificatorManager; -import org.traccar.reports.common.TripsConfig; import org.traccar.session.ConnectionManager; import org.traccar.session.cache.CacheManager; import org.traccar.sms.HttpSmsClient; @@ -167,23 +166,6 @@ public final class Context { return smsManager; } - private static TripsConfig tripsConfig; - - public static TripsConfig getTripsConfig() { - return tripsConfig; - } - - public static TripsConfig initTripsConfig() { - return new TripsConfig( - config.getLong(Keys.REPORT_TRIP_MINIMAL_TRIP_DISTANCE), - config.getLong(Keys.REPORT_TRIP_MINIMAL_TRIP_DURATION) * 1000, - config.getLong(Keys.REPORT_TRIP_MINIMAL_PARKING_DURATION) * 1000, - config.getLong(Keys.REPORT_TRIP_MINIMAL_NO_DATA_DURATION) * 1000, - config.getBoolean(Keys.REPORT_TRIP_USE_IGNITION), - config.getBoolean(Keys.EVENT_MOTION_PROCESS_INVALID_POSITIONS), - config.getDouble(Keys.EVENT_MOTION_SPEED_THRESHOLD)); - } - private static class ObjectMapperContextResolver implements ContextResolver<ObjectMapper> { @Override @@ -236,8 +218,6 @@ public final class Context { connectionManager = new ConnectionManager(); - tripsConfig = initTripsConfig(); - if (config.hasKey(Keys.SMS_HTTP_URL)) { smsManager = new HttpSmsClient(); } else if (config.hasKey(Keys.SMS_AWS_REGION)) { |