[Android] Remove dead code

Geoffrey Métais git at videolan.org
Tue Mar 10 17:48:55 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 10 17:32:45 2015 +0100| [05f0f08615535dd6b433008b0e11d334b214b4de] | committer: Geoffrey Métais

Remove dead code

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

 .../videolan/vlc/gui/tv/browser/BrowserGridFragment.java  |   13 -------------
 1 file changed, 13 deletions(-)

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
index b0cade0..1df8bbd 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
@@ -133,19 +133,6 @@ public class BrowserGridFragment extends GridFragment implements MediaBrowser.Ev
         }
     }
 
-    public void toggleFavorite(String mrl) {
-        MediaDatabase db = MediaDatabase.getInstance();
-        String text;
-        if (db.networkFavExists(mrl)) {
-            db.deleteNetworkFav(mrl);
-            text = "Removed from favorites";
-        } else {
-            db.addNetworkFavItem(mrl);
-            text = "Saved to favorites";
-        }
-        Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT).show();
-    }
-
     @Override
     public void onItemSelected(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, Row row) {
         mItemSelected = (MediaWrapper)item;



More information about the Android mailing list