summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-07-02 16:07:33 +0200
committerCaolán McNamara <caolanm@redhat.com>2012-08-20 16:34:38 +0100
commit92090e32dc09a9ceab75e5e78ac8c6b45ac61d0a (patch)
tree9d173bf0e472e754d2aede4cdba1fec96d6e0ce8 /qadevOOo
parent34322a1360dd6e10df4212a9fa7d050abcb64dbf (diff)
Java update - remove dead code
Change-Id: Ieafe29dd9e23bb40a2a80bd231c21e30faa9a40e
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/complexlib/ShowTargets.java20
-rw-r--r--qadevOOo/runner/convwatch/GraphicalTestArguments.java3
-rw-r--r--qadevOOo/runner/graphical/ParameterHelper.java3
-rw-r--r--qadevOOo/runner/helper/APIDescGetter.java4
-rw-r--r--qadevOOo/runner/util/DBTools.java2
-rw-r--r--qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java2
-rw-r--r--qadevOOo/tests/java/ifc/util/_XFlushable.java1
7 files changed, 2 insertions, 33 deletions
diff --git a/qadevOOo/runner/complexlib/ShowTargets.java b/qadevOOo/runner/complexlib/ShowTargets.java
index 478d565afc54..bd37d922eda0 100644
--- a/qadevOOo/runner/complexlib/ShowTargets.java
+++ b/qadevOOo/runner/complexlib/ShowTargets.java
@@ -92,26 +92,6 @@ public class ShowTargets
}
}
- /** determines if the test denoted by a given Class is an interactive test
- */
- static private boolean isInteractiveTest( Class<?> testClass )
- {
- java.lang.reflect.Method interactiveTestMethod = null;
- try { interactiveTestMethod = testClass.getMethod( "isInteractiveTest", new Class[]{} ); }
- catch( Exception e ) { }
-
- if ( interactiveTestMethod != null )
- {
- try
- {
- Boolean result = (Boolean)interactiveTestMethod.invoke( null, new Object[]{} );
- return result.booleanValue();
- }
- catch( Exception e ) { }
- }
- return false;
- }
-
static private String getShortTestDescription( Class<?> _testClass )
{
java.lang.reflect.Method getShortDescriptionMethod = null;
diff --git a/qadevOOo/runner/convwatch/GraphicalTestArguments.java b/qadevOOo/runner/convwatch/GraphicalTestArguments.java
index be1ce9415714..c0d12f3de41d 100644
--- a/qadevOOo/runner/convwatch/GraphicalTestArguments.java
+++ b/qadevOOo/runner/convwatch/GraphicalTestArguments.java
@@ -99,9 +99,6 @@ public class GraphicalTestArguments
boolean m_bCreateDefaultReference = false;
- // CONSTRUCTOR
- private GraphicalTestArguments(){}
-
public GraphicalTestArguments(TestParameters param)
{
m_aCurrentParams = param;
diff --git a/qadevOOo/runner/graphical/ParameterHelper.java b/qadevOOo/runner/graphical/ParameterHelper.java
index cc733c379ca3..8d2c44008071 100644
--- a/qadevOOo/runner/graphical/ParameterHelper.java
+++ b/qadevOOo/runner/graphical/ParameterHelper.java
@@ -81,9 +81,6 @@ public class ParameterHelper
// private GlobalLogWriter m_aLog;
- // CONSTRUCTOR
- private ParameterHelper(){}
-
public ParameterHelper(TestParameters param)
{
m_aCurrentParams = param;
diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java
index 19f5b9037a2e..f8e124cfe20a 100644
--- a/qadevOOo/runner/helper/APIDescGetter.java
+++ b/qadevOOo/runner/helper/APIDescGetter.java
@@ -463,10 +463,6 @@ public class APIDescGetter extends DescGetter
return methDesc;
}
- private static void createIfcName(String ifc_name, ArrayList<String> meth_names, DescEntry ifcDesc)
- {
- }
-
/**
* This method ensures that XComponent will be the last in the list of interfaces
*/
diff --git a/qadevOOo/runner/util/DBTools.java b/qadevOOo/runner/util/DBTools.java
index 69bfb06b4d16..42a96c032324 100644
--- a/qadevOOo/runner/util/DBTools.java
+++ b/qadevOOo/runner/util/DBTools.java
@@ -239,7 +239,7 @@ public class DBTools {
*/
public Object getDataSourceService() throws Exception
{
- Object src = src = xMSF.createInstance("com.sun.star.sdb.DataSource") ;
+ Object src = xMSF.createInstance("com.sun.star.sdb.DataSource") ;
XPropertySet props = UnoRuntime.queryInterface
(XPropertySet.class, src) ;
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java
index e942a463c4a7..654cb7af295a 100644
--- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java
+++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleEditableText.java
@@ -258,7 +258,7 @@ public class _XAccessibleEditableText extends MultiMethodTest {
log.print("deleteText(" + (length-1) + "," + (length) + "): ");
locRes = oObj.deleteText(length - 1, length);
log.println(locRes);
- String expStr = expStr = text.substring(0, length - 1);
+ String expStr = text.substring(0, length - 1);
curText = oObj.getText();
log.println("Current text: '" + curText + "'");
res &= curText.equals(expStr);
diff --git a/qadevOOo/tests/java/ifc/util/_XFlushable.java b/qadevOOo/tests/java/ifc/util/_XFlushable.java
index 6f1607daebd2..2c7b29753e19 100644
--- a/qadevOOo/tests/java/ifc/util/_XFlushable.java
+++ b/qadevOOo/tests/java/ifc/util/_XFlushable.java
@@ -49,7 +49,6 @@ public class _XFlushable extends MultiMethodTest {
called = true ;
}
public void disposing(com.sun.star.lang.EventObject e) {}
- public void reset() { called = false; }
public boolean wasFlushed() { return called; }
}