Removing service calls which were just delegates to the provider utils.

These weren't used anywhere, and this change makes a more clear separation between dealing with track data and dealing with the recording service.
This commit is contained in:
Rodrigo Damazio
2011-06-17 14:04:56 -03:00
parent 51df795a8c
commit 2c923470f8
2 changed files with 3 additions and 29 deletions
@@ -980,12 +980,6 @@ public class TrackRecordingService extends Service implements LocationListener {
return service.recordingTrackId;
}
@Override
public boolean hasRecorded() {
checkService();
return service.providerUtils.getLastTrackId() >= 0;
}
@Override
public long startNewTrack() {
checkService();
@@ -1009,15 +1003,6 @@ public class TrackRecordingService extends Service implements LocationListener {
service.endCurrentTrack();
}
@Override
public void deleteAllTracks() {
checkService();
if (isRecording()) {
throw new IllegalStateException("Cannot delete all tracks while recording!");
}
service.providerUtils.deleteAllTracks();
}
@Override
public void recordLocation(Location loc) {
checkService();