aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-13 18:57:19 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-13 18:57:19 -0700
commit6433ec663ec79196714dcd99939cdddf81f77a7a (patch)
treeec79a28d7b6be43870e897057bc177aec116f9e8 /src/main/java/org/traccar/database
parenta4f47f67b654cbfd59a134ed3a621f75b35ad7af (diff)
downloadtrackermap-server-6433ec663ec79196714dcd99939cdddf81f77a7a.tar.gz
trackermap-server-6433ec663ec79196714dcd99939cdddf81f77a7a.tar.bz2
trackermap-server-6433ec663ec79196714dcd99939cdddf81f77a7a.zip
Refactor getStatistics method
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/DataManager.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java
index 4fd0cd8c1..8ed907fdd 100644
--- a/src/main/java/org/traccar/database/DataManager.java
+++ b/src/main/java/org/traccar/database/DataManager.java
@@ -34,7 +34,6 @@ import org.traccar.model.Device;
import org.traccar.model.Permission;
import org.traccar.model.Position;
import org.traccar.model.Server;
-import org.traccar.model.Statistics;
import org.traccar.model.User;
import org.traccar.storage.DatabaseStorage;
import org.traccar.storage.Storage;
@@ -204,13 +203,6 @@ public class DataManager {
return storage.getObject(Server.class, new Request(new Columns.All()));
}
- public Collection<Statistics> getStatistics(Date from, Date to) throws StorageException {
- return storage.getObjects(Statistics.class, new Request(
- new Columns.All(),
- new Condition.Between("captureTime", "from", from, "to", to),
- new Order("captureTime")));
- }
-
public Collection<Permission> getPermissions(Class<? extends BaseModel> owner, Class<? extends BaseModel> property)
throws StorageException, ClassNotFoundException {
return storage.getPermissions(owner, property);