diff options
author | soshial <soshial@gmail.com> | 2021-09-13 08:21:35 +0200 |
---|---|---|
committer | soshial <soshial@gmail.com> | 2021-09-13 08:26:45 +0200 |
commit | fd91d6bbb189b091799708a4d3f4e9d9ca114763 (patch) | |
tree | cfc4d03916138505f10c0f590ffe8b72de548fde /src/main/java/org/traccar/database | |
parent | 7a3b106dfc28a6254825b8d664db8181f4bd19f1 (diff) | |
download | trackermap-server-fd91d6bbb189b091799708a4d3f4e9d9ca114763.tar.gz trackermap-server-fd91d6bbb189b091799708a4d3f4e9d9ca114763.tar.bz2 trackermap-server-fd91d6bbb189b091799708a4d3f4e9d9ca114763.zip |
remove comments
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/DataManager.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java index d8401774e..15c67cb74 100644 --- a/src/main/java/org/traccar/database/DataManager.java +++ b/src/main/java/org/traccar/database/DataManager.java @@ -328,18 +328,6 @@ public class DataManager { .executeQuery(Position.class); } - public Position getPositionByTime(long deviceId, Date date) throws SQLException { - Collection<Position> positions = QueryBuilder.create(dataSource, getQuery("database.selectPositionByTime")) - .setLong("deviceId", deviceId) - .setDate("time", date) - .executeQuery(Position.class); - if (positions.isEmpty()) { - return null; - } else { - return positions.iterator().next(); - } - } - public Position getPrecedingPosition(long deviceId, Date date) throws SQLException { Collection<Position> positions = QueryBuilder.create(dataSource, getQuery("database.selectPrecedingPosition")) .setLong("deviceId", deviceId) |