aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-07 21:21:22 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-07 21:21:22 -0800
commitbf51c1994531da91f364b81d6d8c0778ed9c3570 (patch)
treed39930217931b52a763162dc946c72822a524d9b /src/org/traccar/Context.java
parent4e68a40c77240800dce14094b4cc55907410c208 (diff)
downloadtrackermap-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.tar.gz
trackermap-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.tar.bz2
trackermap-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.zip
Refactor overspeed handler
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 627299c01..845dae3c6 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -42,7 +42,6 @@ import org.traccar.database.NotificationManager;
import org.traccar.database.PermissionsManager;
import org.traccar.database.UsersManager;
import org.traccar.handler.events.MotionEventHandler;
-import org.traccar.handler.events.OverspeedEventHandler;
import org.traccar.geocoder.Geocoder;
import org.traccar.helper.Log;
import org.traccar.helper.SanitizerModule;
@@ -245,12 +244,6 @@ public final class Context {
return motionEventHandler;
}
- private static OverspeedEventHandler overspeedEventHandler;
-
- public static OverspeedEventHandler getOverspeedEventHandler() {
- return overspeedEventHandler;
- }
-
private static TripsConfig tripsConfig;
public static TripsConfig getTripsConfig() {
@@ -387,10 +380,6 @@ public final class Context {
velocityEngine.init(velocityProperties);
motionEventHandler = new MotionEventHandler(tripsConfig);
- overspeedEventHandler = new OverspeedEventHandler(
- Context.getConfig().getLong("event.overspeed.minimalDuration") * 1000,
- Context.getConfig().getBoolean("event.overspeed.notRepeat"),
- Context.getConfig().getBoolean("event.overspeed.preferLowest"));
}
public static void init(IdentityManager testIdentityManager, MediaManager testMediaManager) {