[Android] [PATCH] libvlc/Media: remove unused Comparable

Thomas Guillem thomas at gllm.fr
Wed Dec 31 10:41:03 CET 2014


---
 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;
     }
-- 
2.1.3



More information about the Android mailing list