[Android] SearchFragment: remove dead code

Ludovic Fauvet git at videolan.org
Mon Apr 14 19:26:17 CEST 2014


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Apr 14 19:17:43 2014 +0200| [03536446929362ce4e5080349d803df737cdfee3] | committer: Ludovic Fauvet

SearchFragment: remove dead code

MediaDatabase already contains a clearSearchhistory method that does
exactly the same.

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

 vlc-android/src/org/videolan/vlc/gui/SearchFragment.java |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SearchFragment.java b/vlc-android/src/org/videolan/vlc/gui/SearchFragment.java
index 374a367..8ddf75a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SearchFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SearchFragment.java
@@ -188,16 +188,6 @@ public class SearchFragment extends SherlockListFragment {
         }
     };
 
-    /**
-     * Clear the search history.
-     */
-    public void clearSearchHistory() {
-            MediaDatabase db = MediaDatabase.getInstance(getActivity());
-            db.clearSearchhistory();
-            if (mHistoryAdapter == getListAdapter())
-                showSearchHistory();
-    }
-
     private final OnEditorActionListener searchTextListener = new OnEditorActionListener() {
         @Override
         public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {



More information about the Android mailing list