[Android] Database: remove deprecated code and privatize some methods

Jean-Baptiste Kempf git at videolan.org
Thu Apr 4 11:23:32 CEST 2013


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr  4 11:20:16 2013 +0200| [f1f75924582f7d0ae44e4b8a0d29499466a40dee] | committer: Jean-Baptiste Kempf

Database: remove deprecated code and privatize some methods

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

 vlc-android/src/org/videolan/vlc/MediaDatabase.java |   15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaDatabase.java b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
index 947c597..6d686c3 100644
--- a/vlc-android/src/org/videolan/vlc/MediaDatabase.java
+++ b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
@@ -286,7 +286,7 @@ public class MediaDatabase {
      * Get all paths from the items in the database
      * @return list of File
      */
-    public synchronized HashSet<File> getMediaFiles() {
+    private synchronized HashSet<File> getMediaFiles() {
 
         HashSet<File> files = new HashSet<File>();
         Cursor cursor;
@@ -546,17 +546,6 @@ public class MediaDatabase {
     }
 
     /**
-     * Delete directory from directories table if not under root folder
-     *
-     * @param path
-     * @deprecated Since we have now multiple root directories, this method is now deprecated.
-     */
-    @Deprecated
-    public synchronized void removeDirNotUnder(String root) {
-        mDb.delete(DIR_TABLE_NAME, DIR_ROW_PATH + " NOT LIKE ?", new String[] { root+"%" });
-    }
-
-    /**
      *
      * @return
      */
@@ -581,7 +570,7 @@ public class MediaDatabase {
         return paths;
     }
 
-    public synchronized boolean mediaDirExists(String path) {
+    private synchronized boolean mediaDirExists(String path) {
         Cursor cursor = mDb.query(DIR_TABLE_NAME,
                 new String[] { DIR_ROW_PATH },
                 DIR_ROW_PATH + "=?",



More information about the Android mailing list