summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/graphical/FileHelper.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:08:31 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 10:24:10 +0200
commit34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch)
tree4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /qadevOOo/runner/graphical/FileHelper.java
parent347926e8e57c1825261daa46c1886aa2ebf9571b (diff)
java: remove dead methods
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'qadevOOo/runner/graphical/FileHelper.java')
-rw-r--r--qadevOOo/runner/graphical/FileHelper.java63
1 files changed, 3 insertions, 60 deletions
diff --git a/qadevOOo/runner/graphical/FileHelper.java b/qadevOOo/runner/graphical/FileHelper.java
index bee04eb64622..440e6273743a 100644
--- a/qadevOOo/runner/graphical/FileHelper.java
+++ b/qadevOOo/runner/graphical/FileHelper.java
@@ -44,12 +44,7 @@ public class FileHelper
}
- public static void MessageBox(String _sStr)
- {
- String sVersion = System.getProperty("java.version");
- String sOSName = System.getProperty("os.name");
- JOptionPane.showMessageDialog( null, _sStr, sVersion + " " + sOSName + " Hello World Debugger", JOptionPane.INFORMATION_MESSAGE );
- }
+
public static boolean exists(String _sFile)
{
@@ -66,27 +61,7 @@ public class FileHelper
return false;
}
- public static boolean isDir(String _sDir)
- {
- if (_sDir == null)
- {
- return false;
- }
- try
- {
- File aFile = new File(_sDir);
- if (aFile.exists() && aFile.isDirectory())
- {
- return true;
- }
- }
- catch (NullPointerException e)
- {
- GlobalLogWriter.println("Exception caught. FileHelper.isDir('" + _sDir + "')");
- e.printStackTrace();
- }
- return false;
- }
+
public static String getBasename(String _sFilename)
{
@@ -456,33 +431,7 @@ public class FileHelper
};
return aFileFilter;
}
- /**
- * Within the directory run through, it's possible to say which file extension types should not
- * consider like '*.ini' because it's not a document.
- *
- * @return a FileFilter function
- */
- public static FileFilter getFileFilterINI()
- {
- FileFilter aFileFilter = new FileFilter()
- {
- public boolean accept( File pathname )
- {
- String sPathname = pathname.getName().toLowerCase();
- if (sPathname.endsWith("index.ini"))
- {
- // don't consider the index.ini file
- return false;
- }
- if (sPathname.endsWith(".ini"))
- {
- return true;
- }
- return false;
- }
- };
- return aFileFilter;
- }
+
public static String appendPath(String _sPath, String _sRelativePathToAdd)
{
@@ -616,12 +565,6 @@ public class FileHelper
aIniFile.close();
}
- public static void addBasenameToPostscript(String _sOutputFilename)
- {
- String sIndexFilename = FileHelper.appendPath(_sOutputFilename, "postscript.ini");
- String sBasename = FileHelper.getBasename(_sOutputFilename);
- addBasenameToFile(sIndexFilename, sBasename, "", "", "");
- }
public static void addBasenameToIndex(String _sOutputFilename, String _sBasename, String _sCreator, String _sType, String _sSource)
{
String sIndexFilename = FileHelper.appendPath(_sOutputFilename, "index.ini");