Skip to content

Commit 6eddc6a

Browse files
committed
Refactor: Deletes unused variable
1 parent d6a2a3d commit 6eddc6a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

app/src/main/java/net/osmtracker/service/gps/GPSLogger.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public class GPSLogger extends Service implements LocationListener {
114114
*/
115115
private PressureListener pressureListener = new PressureListener();
116116

117-
private boolean newSeg = false;
118117

119118
/**
120119
* Receives Intent for way point and notes tracking, and stop/start logging.
@@ -143,7 +142,6 @@ public void onReceive(Context context, Intent intent) {
143142

144143
// If there is a waypoint in the track, there should also be a trackpoint
145144
dataHelper.track(currentTrackId, lastLocation, sensorListener.getAzimuth(), sensorListener.getAccuracy(), pressureListener.getPressure(), currentSegmentId);
146-
newSeg = false;
147145
}
148146
}
149147
}
@@ -199,7 +197,6 @@ public void onReceive(Context context, Intent intent) {
199197
dataHelper.updateNote(trackId, uuid, name);
200198
}
201199
} else if (OSMTracker.INTENT_START_TRACKING.equals(intent.getAction())) {
202-
newSeg = true;
203200
Bundle extras = intent.getExtras();
204201
if (extras != null) {
205202
Long trackId = extras.getLong(TrackContentProvider.Schema.COL_TRACK_ID);
@@ -381,7 +378,6 @@ public void onLocationChanged(Location location) {
381378

382379
if (isTracking) {
383380
dataHelper.track(currentTrackId, location, sensorListener.getAzimuth(), sensorListener.getAccuracy(), pressureListener.getPressure(), currentSegmentId);
384-
newSeg = false;
385381
}
386382
}
387383
}

0 commit comments

Comments
 (0)