diff options
author | Abyss777 <abyss@fox5.ru> | 2017-06-16 11:42:35 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-06-16 11:42:35 +0500 |
commit | b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f (patch) | |
tree | b5f5815616def7639ff4ca9fac9e686b916762a9 /src/org/traccar/DistanceHandler.java | |
parent | 9a3889863bc8b0140ccdcaa1ba1982903202b67b (diff) | |
download | trackermap-server-b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f.tar.gz trackermap-server-b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f.tar.bz2 trackermap-server-b1d5a5cfd165d2b52cf4dcdc57a6825e0ff1db8f.zip |
Remove intermediate functions
Diffstat (limited to 'src/org/traccar/DistanceHandler.java')
-rw-r--r-- | src/org/traccar/DistanceHandler.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/DistanceHandler.java b/src/org/traccar/DistanceHandler.java index fdf9847a7..0ab2d9048 100644 --- a/src/org/traccar/DistanceHandler.java +++ b/src/org/traccar/DistanceHandler.java @@ -31,7 +31,8 @@ public class DistanceHandler extends BaseDataHandler { return null; } - public Position calculateDistance(Position position) { + @Override + protected Position handlePosition(Position position) { double distance = 0.0; double totalDistance = 0.0; @@ -59,9 +60,4 @@ public class DistanceHandler extends BaseDataHandler { return position; } - @Override - protected Position handlePosition(Position position) { - return calculateDistance(position); - } - } |