OSDN Git Service

Remove now-unused methods from FileManager
authorNick Clarke <memorius@gmail.com>
Tue, 20 Jul 2010 01:42:28 +0000 (13:42 +1200)
committerRandy Baumgarte <randy@fbn.cx>
Fri, 23 Jul 2010 09:31:06 +0000 (05:31 -0400)
src/cx/fbn/nevernote/config/FileManager.java

index 74b474e..d27764a 100644 (file)
@@ -18,15 +18,18 @@ public class FileManager {
 
     private final String dbDirPath;
     private final File dbDir;
-    private final String logsDirPath;
+
     private final File logsDir;
+
     private final String imagesDirPath;
     private final File imagesDir;
+
     private final String qssDirPath;
     private final File qssDir;
+
     private final String resDirPath;
     private final File resDir;
-    private final String xmlDirPath;
+
     private final File xmlDir;
 
     /**
@@ -54,7 +57,6 @@ public class FileManager {
 
         xmlDir = new File(homeDir, "xml");
         checkExistingReadableDir(xmlDir);
-        xmlDirPath = slashTerminatePath(xmlDir.getPath());
 
         // Read-write
         dbDir = new File(homeDir, "db");
@@ -63,7 +65,6 @@ public class FileManager {
 
         logsDir = new File(homeDir, "logs");
         createDirOrCheckWriteable(logsDir);
-        logsDirPath = slashTerminatePath(logsDir.getPath());
 
         resDir = new File(homeDir, "res");
         createDirOrCheckWriteable(resDir);
@@ -73,21 +74,6 @@ public class FileManager {
     }
 
     /**
-     * Get the path to the base installation directory, terminated with {@link File#separator}.
-     * This will contain backslashes on Windows.
-     */
-    public String getHomeDirPath() {
-        return homeDirPath;
-    }
-
-    /**
-     * Get a file below the 'db' directory.
-     */
-    public File getDbDirFile(String relativePath) {
-        return new File(dbDir, toPlatformPathSeparator(relativePath));
-    }
-
-    /**
      * Get a file below the base installation directory.
      */
     public File getHomeDirFile(String relativePath) {
@@ -103,6 +89,13 @@ public class FileManager {
     }
 
     /**
+     * Get a file below the 'db' directory.
+     */
+    public File getDbDirFile(String relativePath) {
+        return new File(dbDir, toPlatformPathSeparator(relativePath));
+    }
+
+    /**
      * Get a path below the 'db' directory, using native {@link File#separator}.
      * This will contain backslashes on Windows.
      */