[Android] Get rid of unused parameter

Geoffrey Métais git at videolan.org
Tue Feb 17 18:16:20 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 17 18:15:06 2015 +0100| [8cec43a22f09911cf0b0597ad3d894ddefa0b6f1] | committer: Geoffrey Métais

Get rid of unused parameter

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=8cec43a22f09911cf0b0597ad3d894ddefa0b6f1
---

 .../org/videolan/vlc/gui/video/VideoPlayerActivity.java  |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 9553d79..e271ef0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -722,28 +722,23 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
     }
 
     public static void start(Context context, String location) {
-        start(context, location, null, -1, false, false);
+        start(context, location, null, false, false);
     }
 
     public static void start(Context context, String location, boolean fromStart) {
-        start(context, location, null, -1, fromStart, false);
+        start(context, location, null, fromStart, false);
     }
 
     public static void start(Context context, String location, String title) {
-        start(context, location, title, -1, false, false);
+        start(context, location, title, false, false);
     }
 
-    public static void start(Context context, String location, String title, int position) {
-        start(context, location, title, position, false, false);
-    }
-
-    public static void start(Context context, String location, String title, int position, boolean fromStart, boolean newTask) {
+    public static void start(Context context, String location, String title, boolean fromStart, boolean newTask) {
         Intent intent = new Intent(context, VideoPlayerActivity.class);
         intent.setAction(VideoPlayerActivity.PLAY_FROM_VIDEOGRID);
         intent.putExtra("itemLocation", location);
         intent.putExtra("itemTitle", title);
         intent.putExtra("fromStart", fromStart);
-        intent.putExtra("itemPosition", position);
 
         if (newTask)
             intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
@@ -2236,7 +2231,6 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
         boolean fromStart = false;
         Uri data;
         String itemTitle = null;
-        int itemPosition = -1; // Index in the media list as passed by AudioServer (used only for vout transition internally)
         long intentPosition = -1; // position passed in by intent (ms)
 
         if (getIntent().getAction() != null



More information about the Android mailing list