aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-18 13:23:16 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-18 13:23:16 -0700
commitc79c71a734da5cb4c84dd660744e58675b1d6fb7 (patch)
treee1721f5cc3262a674389c836cd77fe90664ecaad /src/main/java/org/traccar/Context.java
parent3a293661cd2900c115cfea6037c02d659c57aa52 (diff)
downloadtrackermap-server-c79c71a734da5cb4c84dd660744e58675b1d6fb7.tar.gz
trackermap-server-c79c71a734da5cb4c84dd660744e58675b1d6fb7.tar.bz2
trackermap-server-c79c71a734da5cb4c84dd660744e58675b1d6fb7.zip
Remove device manager
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java20
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 c89d39f4c..583ee460b 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -16,12 +16,7 @@
package org.traccar;
import org.traccar.config.Config;
-import org.traccar.database.BaseObjectManager;
-import org.traccar.database.DataManager;
-import org.traccar.database.DeviceManager;
import org.traccar.helper.Log;
-import org.traccar.model.BaseModel;
-import org.traccar.model.Device;
public final class Context {
@@ -34,12 +29,6 @@ public final class Context {
return config;
}
- private static DeviceManager deviceManager;
-
- public static DeviceManager getDeviceManager() {
- return deviceManager;
- }
-
public static void init(String configFile) throws Exception {
try {
@@ -51,15 +40,6 @@ public final class Context {
throw e;
}
- deviceManager = new DeviceManager(Main.getInjector().getInstance(DataManager.class));
-
- }
-
- public static <T extends BaseModel> BaseObjectManager<T> getManager(Class<T> clazz) {
- if (clazz.equals(Device.class)) {
- return (BaseObjectManager<T>) deviceManager;
- }
- return null;
}
}