summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 12:11:25 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:13 +0200
commit3a8d3519889a68ddf209ea7c83307bec51cd6da0 (patch)
treeab67ef1b6f1f65443b7c4d0e086fdcff17f84283 /qadevOOo/runner/helper
parent8b65a61788aa18e97de068bc75fdeecb20a23026 (diff)
java: remove unused methods
Change-Id: Ibb905e6f3e7d92a0e558f1f6562e5b472cd2717b
Diffstat (limited to 'qadevOOo/runner/helper')
-rw-r--r--qadevOOo/runner/helper/ConfigHelper.java37
-rw-r--r--qadevOOo/runner/helper/ProcessHandler.java26
-rw-r--r--qadevOOo/runner/helper/StringHelper.java10
-rw-r--r--qadevOOo/runner/helper/URLHelper.java52
4 files changed, 0 insertions, 125 deletions
diff --git a/qadevOOo/runner/helper/ConfigHelper.java b/qadevOOo/runner/helper/ConfigHelper.java
index f6029bc0e8a0..da873a59b97c 100644
--- a/qadevOOo/runner/helper/ConfigHelper.java
+++ b/qadevOOo/runner/helper/ConfigHelper.java
@@ -125,43 +125,6 @@ public class ConfigHelper
}
- private Object readRelativeKey(String sRelPath,
- String sKey )
- throws com.sun.star.container.NoSuchElementException
- {
- try
- {
- XPropertySet xPath = UnoRuntime.queryInterface(
- XPropertySet.class,
- m_xConfig.getByHierarchicalName(sRelPath));
- return xPath.getPropertyValue(sKey);
- }
- catch(com.sun.star.uno.Exception ex)
- {
- throw new com.sun.star.container.NoSuchElementException(ex.getMessage());
- }
- }
-
-
- private void writeRelativeKey(String sRelPath,
- String sKey ,
- Object aValue )
- throws com.sun.star.container.NoSuchElementException
- {
- try
- {
- XPropertySet xPath = UnoRuntime.queryInterface(
- XPropertySet.class,
- m_xConfig.getByHierarchicalName(sRelPath));
- xPath.setPropertyValue(sKey, aValue);
- }
- catch(com.sun.star.uno.Exception ex)
- {
- throw new com.sun.star.container.NoSuchElementException(ex.getMessage());
- }
- }
-
-
/**
* Updates the configuration.<p>
* This must be called after you have changed the configuration
diff --git a/qadevOOo/runner/helper/ProcessHandler.java b/qadevOOo/runner/helper/ProcessHandler.java
index 012a38fd0a47..85accac84cd8 100644
--- a/qadevOOo/runner/helper/ProcessHandler.java
+++ b/qadevOOo/runner/helper/ProcessHandler.java
@@ -765,20 +765,6 @@ public class ProcessHandler
return exitValue;
}
- /** Causes the thread to sleep some time.
- */
- private static void shortWait(long milliseconds)
- {
- try
- {
- Thread.sleep(milliseconds);
- }
- catch (InterruptedException e)
- {
- System.out.println("While waiting :" + e);
- }
- }
-
private void dbg(String message)
{
if (debug)
@@ -813,18 +799,6 @@ public class ProcessHandler
{
return m_bInterrupt;
}
- /**
- * Marks the thread to hold on, next time
- * STUPID: The thread must poll this flag itself.
- *
- * Reason: interrupt() seems not to work as expected.
- */
- private synchronized void holdOn()
- {
- m_bInterrupt = true;
- interrupt();
- }
-
@Override
public void run()
{
diff --git a/qadevOOo/runner/helper/StringHelper.java b/qadevOOo/runner/helper/StringHelper.java
index 6308a0a2eacb..7c4943c05ee9 100644
--- a/qadevOOo/runner/helper/StringHelper.java
+++ b/qadevOOo/runner/helper/StringHelper.java
@@ -21,16 +21,6 @@ package helper;
public class StringHelper
{
- private static String doubleQuote(String _sStr)
- {
- return "\"" + _sStr + "\"";
- }
-
- private static String singleQuote(String _sStr)
- {
- return "'" + _sStr + "'";
- }
-
/**
* removes quotes if both exists at start and at end
*/
diff --git a/qadevOOo/runner/helper/URLHelper.java b/qadevOOo/runner/helper/URLHelper.java
index 9b5fc651f97f..60bebf87ee0e 100644
--- a/qadevOOo/runner/helper/URLHelper.java
+++ b/qadevOOo/runner/helper/URLHelper.java
@@ -98,58 +98,6 @@ public class URLHelper
/**
- * Does the same as getFileURLFromSystemPath() before ... but uses
- * the given protocol string (e.g."http://") instead of "file:///".
- *
- * @param aSystemPath
- * represent the file in system notation
- *
- * @param aBasePath
- * define the base path of the aSystemPath value,
- * which must be replaced with the value of "sServerPath".
- *
- * @param sServerURL
- * Will be used to replace sBasePath.
- *
- * @example
- * System Path = "d:\test\file.txt"
- * Base Path = "d:\test"
- * Server Path = "http://alaska:8000"
- * => "http://alaska:8000/file.txt"
- *
- * @return [String]
- * an url which represent the given system path
- * and uses the given protocol
- */
- private static String getURLWithProtocolFromSystemPath( File aSystemPath, File aBasePath, String sServerURL )
- {
- String sFileURL = URLHelper.getFileURLFromSystemPath(aSystemPath);
- String sBaseURL = URLHelper.getFileURLFromSystemPath(aBasePath );
-
- // cut last '/'!
- if (sBaseURL.lastIndexOf('/')==(sBaseURL.length()-1))
- sBaseURL = sBaseURL.substring(0,sBaseURL.length()-1);
-
- // cut last '/'!
- if (sServerURL.lastIndexOf('/')==(sServerURL.length()-1))
- sServerURL = sServerURL.substring(0,sServerURL.length()-1);
-
- int index = sFileURL.indexOf(sBaseURL);
- String sURL = sFileURL.substring(0,index) + sServerURL +
- sFileURL.substring(index+sBaseURL.length());
- return sURL;
- }
-
-
-
-
-
-
-
-
-
-
- /**
* Return a name list of all available files of a directory.
* We filter pure sub directories names. All other files
* are returned as full qualified URL strings. So they can be