diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-01 15:50:09 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-01 15:50:09 +1300 |
commit | 82909a81eb01cfd76f38fec7cccff5a5c87b5232 (patch) | |
tree | 42a3b3093d96f91c79d24186ff7399fe188888e6 /src | |
parent | cf8aeca07a7187d62dfa3bc79506c6ff41613f32 (diff) | |
download | traccar-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.tar.gz traccar-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.tar.bz2 traccar-server-82909a81eb01cfd76f38fec7cccff5a5c87b5232.zip |
Remove unused data manager methods (fix #2386)
Diffstat (limited to 'src')
-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 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) |