Commit a80072fb authored by Thomas Guillem's avatar Thomas Guillem
Browse files

MediaLibrary: remove unused method

parent aed19e71
......@@ -37,7 +37,6 @@ import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.LibVlcException;
import org.videolan.libvlc.Media;
import org.videolan.vlc.gui.MainActivity;
import org.videolan.vlc.gui.audio.AudioBrowserFragment;
import org.videolan.vlc.util.AndroidDevices;
import org.videolan.vlc.util.Util;
import org.videolan.vlc.util.VLCInstance;
......@@ -152,36 +151,6 @@ public class MediaLibrary {
return audioItems;
}
public ArrayList<Media> getAudioItems(String name, String name2, int mode) {
ArrayList<Media> audioItems = new ArrayList<Media>();
mItemListLock.readLock().lock();
for (int i = 0; i < mItemList.size(); i++) {
Media item = mItemList.get(i);
if (item.getType() == Media.TYPE_AUDIO) {
boolean valid = false;
switch (mode) {
case AudioBrowserFragment.MODE_ARTIST:
valid = name.equals(item.getArtist()) && (name2 == null || name2.equals(item.getAlbum()));
break;
case AudioBrowserFragment.MODE_ALBUM:
valid = name.equals(item.getAlbum());
break;
case AudioBrowserFragment.MODE_GENRE:
valid = name.equals(item.getGenre()) && (name2 == null || name2.equals(item.getAlbum()));
break;
default:
break;
}
if (valid)
audioItems.add(item);
}
}
mItemListLock.readLock().unlock();
return audioItems;
}
public ArrayList<Media> getMediaItems() {
return mItemList;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment