diff options
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 62275af3c..07e50ff5d 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -17,7 +17,6 @@ package org.traccar.database; import com.mchange.v2.c3p0.ComboPooledDataSource; import java.io.File; -import java.net.SocketAddress; import java.net.URL; import java.net.URLClassLoader; import java.sql.Connection; @@ -34,9 +33,7 @@ import java.util.Properties; import javax.naming.InitialContext; import javax.sql.DataSource; -import org.jboss.netty.channel.Channel; import org.traccar.Context; -import org.traccar.Protocol; import org.traccar.helper.DriverDelegate; import org.traccar.helper.Log; import org.traccar.http.AsyncServlet; @@ -56,7 +53,6 @@ public class DataManager { private DataSource dataSource; private final Map<String, Device> devices = new HashMap<String, Device>(); - private Map<String, ActiveDevice> activeDevices = new HashMap<String, ActiveDevice>(); private long devicesLastUpdate; private long devicesRefreshDelay; @@ -79,14 +75,6 @@ public class DataManager { return dataSource; } - public void setActiveDevice(String uniqueId, Protocol protocol, Channel channel, SocketAddress remoteAddress) { - this.activeDevices.put(uniqueId, new ActiveDevice(uniqueId, protocol, channel, remoteAddress)); - } - - public ActiveDevice getActiveDevice(String uniqueId) { - return this.activeDevices.get(uniqueId); - } - private void initDatabase(Properties properties) throws Exception { String jndiName = properties.getProperty("database.jndi"); |