[Android] Util: remove unused getOrCreateMedia
Thomas Guillem
git at videolan.org
Wed Jul 1 15:34:55 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 1 15:34:28 2015 +0200| [e47b5713cc50c2ba5deb1f9c55bea16380262162] | committer: Thomas Guillem
Util: remove unused getOrCreateMedia
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e47b5713cc50c2ba5deb1f9c55bea16380262162
---
vlc-android/src/org/videolan/vlc/util/Util.java | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/Util.java b/vlc-android/src/org/videolan/vlc/util/Util.java
index 63a46a6..8bee66e 100644
--- a/vlc-android/src/org/videolan/vlc/util/Util.java
+++ b/vlc-android/src/org/videolan/vlc/util/Util.java
@@ -116,25 +116,6 @@ public class Util {
}
/**
- * Retrieve the existing media object from the media library or create a
- * new one from the given MRL.
- *
- * @param libVLC LibVLC instance
- * @param mrl MRL of the media
- * @return A media object from the media library or newly created
- */
- public static MediaWrapper getOrCreateMedia(LibVLC libVLC, String mrl) {
- MediaWrapper mlItem = MediaLibrary.getInstance().getMediaItem(mrl);
- if(mlItem == null) {
- final Media media = new Media(libVLC, Uri.parse(mrl));
- media.parse(); // FIXME: parse should'nt be done asynchronously
- media.release();
- mlItem = new MediaWrapper(media);
- }
- return mlItem;
- }
-
- /**
* Get a resource id from an attribute id.
* @param context
* @param attrId
More information about the Android
mailing list