[Android] libvlc/Media: remove unused Comparable
Thomas Guillem
git at videolan.org
Wed Dec 31 10:47:53 CET 2014
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 31 10:40:23 2014 +0100| [15ecefcc41b261a791dfa9571c61220384cb081d] | committer: Thomas Guillem
libvlc/Media: remove unused Comparable
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=15ecefcc41b261a791dfa9571c61220384cb081d
---
libvlc/src/org/videolan/libvlc/Media.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/Media.java b/libvlc/src/org/videolan/libvlc/Media.java
index 9423ab7..f0dab6e 100644
--- a/libvlc/src/org/videolan/libvlc/Media.java
+++ b/libvlc/src/org/videolan/libvlc/Media.java
@@ -27,7 +27,7 @@ import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Log;
-public class Media implements Comparable<Media> {
+public class Media {
public final static String TAG = "VLC/LibVLC/Media";
public final static HashSet<String> VIDEO_EXTENSIONS;
@@ -211,15 +211,6 @@ public class Media implements Comparable<Media> {
mTrackNumber = trackNumber;
}
- /**
- * Compare the filenames to sort items
- */
- @Override
- public int compareTo(Media another) {
- return getTitle().toUpperCase(Locale.getDefault()).compareTo(
- another.getTitle().toUpperCase(Locale.getDefault()));
- }
-
public String getLocation() {
return mLocation;
}
More information about the Android
mailing list