aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-01 15:50:09 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-01 15:50:09 +1300
commit82909a81eb01cfd76f38fec7cccff5a5c87b5232 (patch)
tree42a3b3093d96f91c79d24186ff7399fe188888e6
parentcf8aeca07a7187d62dfa3bc79506c6ff41613f32 (diff)
downloadtrackermap-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.tar.gz
trackermap-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.tar.bz2
trackermap-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.zip
Remove unused data manager methods (fix #2386)
-rw-r--r--debug.xml10
-rw-r--r--setup/traccar.xml10
-rw-r--r--src/org/traccar/database/DataManager.java12
3 files changed, 0 insertions, 32 deletions
diff --git a/debug.xml b/debug.xml
index 94e30c6b8..d01a25248 100644
--- a/debug.xml
+++ b/debug.xml
@@ -119,11 +119,6 @@
WHERE email = :email;
</entry>
- <entry key='database.selectUser'>
- SELECT * FROM users
- WHERE id = :id;
- </entry>
-
<entry key='database.selectUsersAll'>
SELECT * FROM users;
</entry>
@@ -247,11 +242,6 @@
SELECT * FROM events WHERE deviceId = :deviceId AND type LIKE :type AND serverTime BETWEEN :from AND :to ORDER BY serverTime DESC;
</entry>
- <entry key='database.selectGeofence'>
- SELECT * FROM geofences
- WHERE id = :id;
- </entry>
-
<entry key='database.selectGeofencesAll'>
SELECT * FROM geofences;
</entry>
diff --git a/setup/traccar.xml b/setup/traccar.xml
index ccdc5b745..c13abb3e2 100644
--- a/setup/traccar.xml
+++ b/setup/traccar.xml
@@ -62,11 +62,6 @@
WHERE email = :email;
</entry>
- <entry key='database.selectUser'>
- SELECT * FROM users
- WHERE id = :id;
- </entry>
-
<entry key='database.selectUsersAll'>
SELECT * FROM users;
</entry>
@@ -190,11 +185,6 @@
SELECT * FROM events WHERE deviceId = :deviceId AND type LIKE :type AND serverTime BETWEEN :from AND :to ORDER BY serverTime DESC;
</entry>
- <entry key='database.selectGeofence'>
- SELECT * FROM geofences
- WHERE id = :id;
- </entry>
-
<entry key='database.selectGeofencesAll'>
SELECT * FROM geofences;
</entry>
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index c58fe40a5..6718bda83 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -160,12 +160,6 @@ public class DataManager {
.executeQuery(User.class);
}
- public User getUser(long userId) throws SQLException {
- return QueryBuilder.create(dataSource, getQuery("database.selectUser"))
- .setLong("id", userId)
- .executeQuerySingle(User.class);
- }
-
public void addUser(User user) throws SQLException {
user.setId(QueryBuilder.create(dataSource, getQuery("database.insertUser"), true)
.setObject(user)
@@ -359,12 +353,6 @@ public class DataManager {
.executeQuery(Geofence.class);
}
- public Geofence getGeofence(long geofenceId) throws SQLException {
- return QueryBuilder.create(dataSource, getQuery("database.selectGeofences"))
- .setLong("id", geofenceId)
- .executeQuerySingle(Geofence.class);
- }
-
public void addGeofence(Geofence geofence) throws SQLException {
geofence.setId(QueryBuilder.create(dataSource, getQuery("database.insertGeofence"), true)
.setObject(geofence)