[libbluray-devel] Remove nativeDelete()

hpi1 git at videolan.org
Fri Feb 27 13:27:26 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Feb 27 13:47:40 2015 +0200| [3e770a764b3522b0e3404f8657d90fce8514c78c] | committer: hpi1

Remove nativeDelete()

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=3e770a764b3522b0e3404f8657d90fce8514c78c
---

 src/libbluray/bdj/java/java/io/BDFileSystem.java  |    4 ----
 src/libbluray/bdj/java/org/videolan/CacheDir.java |    4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/libbluray/bdj/java/java/io/BDFileSystem.java b/src/libbluray/bdj/java/java/io/BDFileSystem.java
index 7dd3dd1..687a228 100644
--- a/src/libbluray/bdj/java/java/io/BDFileSystem.java
+++ b/src/libbluray/bdj/java/java/io/BDFileSystem.java
@@ -84,10 +84,6 @@ public abstract class BDFileSystem extends FileSystem {
         return getFileSystem().getBooleanAttributes(new File(path)) != 0;
     }
 
-    public static boolean nativeDelete(File f) {
-        return getFileSystem().delete(f);
-    }
-
     /*
      */
 
diff --git a/src/libbluray/bdj/java/org/videolan/CacheDir.java b/src/libbluray/bdj/java/org/videolan/CacheDir.java
index 1993ff7..e2fdd68 100644
--- a/src/libbluray/bdj/java/org/videolan/CacheDir.java
+++ b/src/libbluray/bdj/java/org/videolan/CacheDir.java
@@ -105,14 +105,14 @@ class CacheDir {
             if (file.isDirectory()) {
                 removeImpl(file);
             } else {
-                if (!BDFileSystem.nativeDelete(file)) {
+                if (!file.delete()) {
                     logger.info("Error removing " + file.getPath());
                 }
             }
         }
         }
 
-        if (!BDFileSystem.nativeDelete(dir)) {
+        if (!dir.delete()) {
             logger.error("Error removing " + dir.getPath());
         }
     }



More information about the libbluray-devel mailing list