summaryrefslogtreecommitdiff
path: root/unotools/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-18 13:18:34 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-11-24 11:59:56 +0000
commit211990642306d08a388682b4ac84a5776b3afbd7 (patch)
tree7bdd7808f81330a0c5c77c9b0952e6596c5395b9 /unotools/qa
parent8b0aa5210a36c14bb9c3038870b83a6769dde601 (diff)
java: unused local vars
Change-Id: Ib0709da830788f8169282e45552af4fdc300ccf9 Reviewed-on: https://gerrit.libreoffice.org/13096 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools/qa')
-rw-r--r--unotools/qa/complex/tempfile/Test01.java3
-rw-r--r--unotools/qa/complex/tempfile/Test02.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/unotools/qa/complex/tempfile/Test01.java b/unotools/qa/complex/tempfile/Test01.java
index 6f52100f23fe..ae4d80de4d10 100644
--- a/unotools/qa/complex/tempfile/Test01.java
+++ b/unotools/qa/complex/tempfile/Test01.java
@@ -39,7 +39,6 @@ public class Test01 implements TempFileTest {
public boolean test() {
XTempFile xTempFile = null;
- XTruncate xTruncate = null;
String sFileURL = null;
String sFileName = null;
//create a temporary file.
@@ -47,7 +46,7 @@ public class Test01 implements TempFileTest {
Object oTempFile = m_xMSF.createInstance( "com.sun.star.io.TempFile" );
xTempFile = UnoRuntime.queryInterface(XTempFile.class, oTempFile);
m_aTestHelper.Message( "Tempfile created." );
- xTruncate = UnoRuntime.queryInterface(XTruncate.class, oTempFile);
+ UnoRuntime.queryInterface(XTruncate.class, oTempFile);
} catch( Exception e ) {
m_aTestHelper.Error( "Cannot create TempFile. exception: " + e );
return false;
diff --git a/unotools/qa/complex/tempfile/Test02.java b/unotools/qa/complex/tempfile/Test02.java
index 17d5577dc85a..b1c0f70b32b6 100644
--- a/unotools/qa/complex/tempfile/Test02.java
+++ b/unotools/qa/complex/tempfile/Test02.java
@@ -40,14 +40,13 @@ public class Test02 implements TempFileTest {
public boolean test() {
Object oTempFile = null;
XTempFile xTempFile = null;
- XTruncate xTruncate = null;
String sFileURL = null;
//create a temporary file.
try {
oTempFile = m_xMSF.createInstance( "com.sun.star.io.TempFile" );
xTempFile = UnoRuntime.queryInterface(XTempFile.class, oTempFile);
m_aTestHelper.Message( "Tempfile created." );
- xTruncate = UnoRuntime.queryInterface(XTruncate.class, oTempFile);
+ UnoRuntime.queryInterface(XTruncate.class, oTempFile);
} catch(Exception e) {
m_aTestHelper.Error( "Cannot create TempFile. exception: " + e );
return false;