aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/DeviceManager.java7
-rw-r--r--src/main/java/org/traccar/database/IdentityManager.java2
2 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/database/DeviceManager.java b/src/main/java/org/traccar/database/DeviceManager.java
index d1a205b01..231be7b07 100644
--- a/src/main/java/org/traccar/database/DeviceManager.java
+++ b/src/main/java/org/traccar/database/DeviceManager.java
@@ -115,14 +115,9 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity
return devicesByUniqueId.get(uniqueId);
}
- public String getDevicePassword(long id) {
-
- return getById(id).getString(Command.KEY_DEVICE_PASSWORD);
- }
-
public String getDevicePassword(long id, String defaultPassword) {
- String password = getDevicePassword(id);
+ String password = getById(id).getString(Command.KEY_DEVICE_PASSWORD);
if (password != null) {
return password;
}
diff --git a/src/main/java/org/traccar/database/IdentityManager.java b/src/main/java/org/traccar/database/IdentityManager.java
index 331706669..add3e5a79 100644
--- a/src/main/java/org/traccar/database/IdentityManager.java
+++ b/src/main/java/org/traccar/database/IdentityManager.java
@@ -26,8 +26,6 @@ public interface IdentityManager {
Device getByUniqueId(String uniqueId) throws Exception;
- String getDevicePassword(long id);
-
String getDevicePassword(long id, String defaultPassword);
Position getLastPosition(long deviceId);