Track deletion UI: code cleanup.

This commit is contained in:
Dennis Guse
2020-07-03 23:33:16 +02:00
parent ff65a4d04f
commit 98c3169929
4 changed files with 46 additions and 115 deletions
@@ -165,9 +165,7 @@ public class ContentProviderUtils {
return track;
}
/**
* Deletes all tracks (including waypoints and trackPoints).
*/
@VisibleForTesting
public void deleteAllTracks(Context context) {
contentResolver.delete(TrackPointsColumns.CONTENT_URI_BY_ID, null, null);
contentResolver.delete(WaypointsColumns.CONTENT_URI, null, null);