diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:30:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:16 +0200 |
commit | e7a474b29ad87c03bdc3253cc62521b8af3a93e0 (patch) | |
tree | 653452cc25dbe5fb2a9cc36e59f7a95ceed8f17c /testtools | |
parent | 27459c71ef5f6f27749de36334e8a20fe4731e62 (diff) |
java: remove unused variables
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/com/sun/star/comp/bridge/TestComponentMain.java | 3 | ||||
-rw-r--r-- | testtools/qa/cli/CLITest.java | 6 | ||||
-rw-r--r-- | testtools/qa/cliversioning/VersionTestCase.java | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponentMain.java b/testtools/com/sun/star/comp/bridge/TestComponentMain.java index 4507478826fb..bcb5d8f58e53 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponentMain.java +++ b/testtools/com/sun/star/comp/bridge/TestComponentMain.java @@ -71,7 +71,6 @@ public class TestComponentMain String conDcp = null; String protDcp = null; - String rootOid = null; String dcp = args[0]; boolean singleaccept = args[1].equals("singleaccept"); @@ -88,8 +87,6 @@ public class TestComponentMain protDcp = dcp.substring(0, index).trim(); dcp = dcp.substring(index + 1).trim(); - rootOid = dcp.trim().trim(); - XComponentContext ctx = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext( null ); XMultiComponentFactory smgr = ctx.getServiceManager(); XMultiServiceFactory oldsmgr = diff --git a/testtools/qa/cli/CLITest.java b/testtools/qa/cli/CLITest.java index 9567e1ac408f..40d2ba0d265a 100644 --- a/testtools/qa/cli/CLITest.java +++ b/testtools/qa/cli/CLITest.java @@ -47,13 +47,11 @@ public class CLITest extends ComplexTestCase String[] cmdarray = new String[] {testProgram, arg1}; Process proc = null; - Reader outReader; - Reader errReader; try{ proc = Runtime.getRuntime().exec(cmdarray); - outReader = new Reader(proc.getInputStream()); - errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); } diff --git a/testtools/qa/cliversioning/VersionTestCase.java b/testtools/qa/cliversioning/VersionTestCase.java index 93b464fcc069..7ada72145a60 100644 --- a/testtools/qa/cliversioning/VersionTestCase.java +++ b/testtools/qa/cliversioning/VersionTestCase.java @@ -55,8 +55,8 @@ public class VersionTestCase extends ComplexTestCase Process proc = null; proc = Runtime.getRuntime().exec(testProgram, arEnv); - Reader outReader = new Reader(proc.getInputStream()); - Reader errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); proc.waitFor(); retVal = proc.exitValue(); } catch(Exception e) |