aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/DatabaseDataManager.java3
-rw-r--r--src/org/traccar/model/Position.java19
2 files changed, 0 insertions, 22 deletions
diff --git a/src/org/traccar/model/DatabaseDataManager.java b/src/org/traccar/model/DatabaseDataManager.java
index 3092744c0..384d87828 100644
--- a/src/org/traccar/model/DatabaseDataManager.java
+++ b/src/org/traccar/model/DatabaseDataManager.java
@@ -210,8 +210,6 @@ public class DatabaseDataManager implements DataManager {
position.setSpeed(result.getDouble("speed"));
position.setCourse(result.getDouble("course"));
position.setPower(result.getDouble("power"));
- position.setMode(result.getInt("mode"));
- position.setAddress(result.getString("address"));
positionList.add(position);
}
@@ -231,7 +229,6 @@ public class DatabaseDataManager implements DataManager {
queryAddPosition.setDouble("speed", position.getSpeed());
queryAddPosition.setDouble("course", position.getCourse());
queryAddPosition.setDouble("power", position.getPower());
- queryAddPosition.setInt("mode", position.getMode());
queryAddPosition.setString("address", position.getAddress());
queryAddPosition.setString("extended_info", position.getExtendedInfo());
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index e6ac46de1..b408dbbf2 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -15,7 +15,6 @@
*/
package org.traccar.model;
-import java.text.SimpleDateFormat;
import java.util.Date;
/**
@@ -57,12 +56,6 @@ public class Position {
public Date getTime() {
return time;
}
-
- public String getTimeFormated(){
- SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
- df.setLenient(false);
- return df.format(time);
- }
public void setTime(Date time) {
this.time = time;
@@ -158,18 +151,6 @@ public class Position {
public void setPower(Double power) {
this.power = power;
}
- /**
- * Mode / 1 - Parking | 2 - Driving
- */
- private int mode;
-
- public int getMode() {
- return mode;
- }
-
- public void setMode(int mode) {
- this.mode = mode;
- }
/**
* Address