OSDN Git Service

Remove Global.getDirectoryPath()
authorNick Clarke <memorius@gmail.com>
Tue, 20 Jul 2010 01:13:19 +0000 (13:13 +1200)
committerRandy Baumgarte <randy@fbn.cx>
Fri, 23 Jul 2010 09:31:06 +0000 (05:31 -0400)
Paths are now handled via Global.getFileManager()

src/cx/fbn/nevernote/Global.java

index ea84213..56d0ce0 100644 (file)
@@ -21,7 +21,6 @@ package cx.fbn.nevernote;
 \r
 \r
 //import java.io.ByteArrayOutputStream;\r
-import java.io.File;\r
 import java.io.PrintStream;\r
 import java.text.SimpleDateFormat;\r
 import java.util.ArrayList;\r
@@ -188,16 +187,6 @@ public class Global {
                                \r
     }\r
 \r
-    public static String getDirectoryPath() {\r
-               if (currentDir == null) {\r
-                       currentDir = System.getProperty("user.dir");\r
-               }\r
-               if (!currentDir.substring(currentDir.length()-1).equals(File.separator)) {\r
-                       currentDir = currentDir+File.separator;\r
-               }\r
-               return currentDir;\r
-    }\r
-\r
     public static String getWordRegex() {\r
        return wordRegex;\r
     }\r