From aff5654bde38a5e1254da7ada3025b09e7ae804d Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Tue, 3 Sep 2013 13:39:41 -0700 Subject: [PATCH] Code cleanup: remove unused interface --- .../apps/mytracks/io/file/SaveAsyncTask.java | 1 - .../apps/mytracks/io/file/TrackExporter.java | 17 ----------------- .../mytracks/io/file/FileTrackExporterTest.java | 1 - 3 files changed, 19 deletions(-) diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/file/SaveAsyncTask.java b/MyTracks/src/com/google/android/apps/mytracks/io/file/SaveAsyncTask.java index f6b687f20..4a4a2dc9d 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/file/SaveAsyncTask.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/file/SaveAsyncTask.java @@ -19,7 +19,6 @@ package com.google.android.apps.mytracks.io.file; import com.google.android.apps.mytracks.content.MyTracksProviderUtils; import com.google.android.apps.mytracks.content.Track; import com.google.android.apps.mytracks.content.TracksColumns; -import com.google.android.apps.mytracks.io.file.TrackExporter.TrackExporterListener; import com.google.android.apps.mytracks.util.FileUtils; import com.google.android.apps.mytracks.util.PreferencesUtils; import com.google.android.apps.mytracks.util.SystemUtils; diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/file/TrackExporter.java b/MyTracks/src/com/google/android/apps/mytracks/io/file/TrackExporter.java index 63f97c993..661719f29 100644 --- a/MyTracks/src/com/google/android/apps/mytracks/io/file/TrackExporter.java +++ b/MyTracks/src/com/google/android/apps/mytracks/io/file/TrackExporter.java @@ -25,23 +25,6 @@ import java.io.OutputStream; */ public interface TrackExporter { - /** - * Listener for {@link TrackExporter} progress. - * - * @author Jimmy Shih - */ - interface TrackExporterListener { - - /** - * Called to update progress. - * - * @param number the number of locations written - * @param max the maximum number of locations in a track, for calculation of - * completion percentage - */ - void onProgressUpdate(int number, int max); - } - /** * Write track to an output stream * diff --git a/MyTracksTest/src/com/google/android/apps/mytracks/io/file/FileTrackExporterTest.java b/MyTracksTest/src/com/google/android/apps/mytracks/io/file/FileTrackExporterTest.java index 9086a4fd8..54cfaea38 100644 --- a/MyTracksTest/src/com/google/android/apps/mytracks/io/file/FileTrackExporterTest.java +++ b/MyTracksTest/src/com/google/android/apps/mytracks/io/file/FileTrackExporterTest.java @@ -7,7 +7,6 @@ import com.google.android.apps.mytracks.content.MyTracksProviderUtils; import com.google.android.apps.mytracks.content.MyTracksProviderUtils.Factory; import com.google.android.apps.mytracks.content.Track; import com.google.android.apps.mytracks.content.Waypoint; -import com.google.android.apps.mytracks.io.file.TrackExporter.TrackExporterListener; import com.google.android.apps.mytracks.services.TrackRecordingServiceTest.MockContext; import com.google.android.apps.mytracks.testing.TestingProviderUtilsFactory;