diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-04 16:12:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-05 11:31:49 +0200 |
commit | f124688cfdfbe96ff2be5ab44ea5023725548146 (patch) | |
tree | 4874bf2b2504979b9733f200e05b68034c7eaefe /javaunohelper | |
parent | 36a74fe54a0cd99372ea646af31ce41ac5ec5b08 (diff) |
java: remove various unused variables
Change-Id: Id9f30938f594cb6fe73bf40adfffa65ec1b42cd1
Diffstat (limited to 'javaunohelper')
5 files changed, 9 insertions, 14 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java index f4cda932f3ef..318a716fc86f 100644 --- a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java +++ b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java @@ -73,7 +73,6 @@ public class InputStreamToXInputStreamAdapter implements XInputStream { public int readBytes(byte[][] b, int len) throws com.sun.star.io.IOException { - int count = 0; try { long bytesRead; if (len >iIn.available()) { @@ -100,7 +99,6 @@ public class InputStreamToXInputStreamAdapter implements XInputStream { public int readSomeBytes(byte[][] b, int len) throws com.sun.star.io.IOException { - int count = 0; try { long bytesRead; if (len >iIn.available()) { diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java index 7f4a62387514..80af78871797 100644 --- a/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java +++ b/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java @@ -108,7 +108,6 @@ public class XInputStreamToInputStreamAdapter extends InputStream { } public int read(byte[] b, int off, int len) throws IOException { - int count = 0; byte [][] tmp = new byte [1][b.length]; try { long bytesRead; diff --git a/javaunohelper/test/com/sun/star/comp/helper/SharedLibraryLoader_Test.java b/javaunohelper/test/com/sun/star/comp/helper/SharedLibraryLoader_Test.java index 3fd5f8cfc0fd..4a50617dff88 100644 --- a/javaunohelper/test/com/sun/star/comp/helper/SharedLibraryLoader_Test.java +++ b/javaunohelper/test/com/sun/star/comp/helper/SharedLibraryLoader_Test.java @@ -106,7 +106,6 @@ public class SharedLibraryLoader_Test { static public boolean test_loadNativeSimpleRegistry() throws java.lang.Exception { - boolean result = false; System.out.println("*******************************************************************"); System.out.println("Test: <<< load native SimpleRegistry >>>"); if ( sharedLibraryLoader == null ) diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java index 2d3e764aee72..3aaa764a037d 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java @@ -271,7 +271,6 @@ public class MultiTypeInterfaceContainer_Test boolean r[]= new boolean[50]; int i= 0; - int count= 0; cont.clear(); Type[] types= cont.getContainedTypes(); r[i++]= types.length == 0; diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/UnoUrlTest.java b/javaunohelper/test/com/sun/star/lib/uno/helper/UnoUrlTest.java index e71c6518b756..d12c5aee4e21 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/UnoUrlTest.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/UnoUrlTest.java @@ -61,7 +61,7 @@ public class UnoUrlTest { public void testStart2() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno1:x;y;z"); + UnoUrl.parseUnoUrl("uno1:x;y;z"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -69,7 +69,7 @@ public class UnoUrlTest { public void testStart3() { try { - UnoUrl url = UnoUrl.parseUnoUrl("un:x;y;z"); + UnoUrl.parseUnoUrl("un:x;y;z"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -87,7 +87,7 @@ public class UnoUrlTest { public void testParam1() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:"); + UnoUrl.parseUnoUrl("uno:"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -95,7 +95,7 @@ public class UnoUrlTest { public void testParam2() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:a;"); + UnoUrl.parseUnoUrl("uno:a;"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -103,7 +103,7 @@ public class UnoUrlTest { public void testPartName1() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:abc!abc;b;c"); + UnoUrl.parseUnoUrl("uno:abc!abc;b;c"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -111,7 +111,7 @@ public class UnoUrlTest { public void testOID1() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:x;y;ABC<ABC"); + UnoUrl.parseUnoUrl("uno:x;y;ABC<ABC"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -143,7 +143,7 @@ public class UnoUrlTest { public void testParams1() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:x,abc!abc=val;y;ABC"); + UnoUrl.parseUnoUrl("uno:x,abc!abc=val;y;ABC"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -151,7 +151,7 @@ public class UnoUrlTest { public void testParams2() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:x,abc=val<val;y;ABC"); + UnoUrl.parseUnoUrl("uno:x,abc=val<val;y;ABC"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } @@ -199,7 +199,7 @@ public class UnoUrlTest { public void testUTF1() { try { - UnoUrl url = UnoUrl.parseUnoUrl("uno:x,abc=val%4t;y;ABC"); + UnoUrl.parseUnoUrl("uno:x,abc=val%4t;y;ABC"); fail("Should throw an exception"); } catch (com.sun.star.lang.IllegalArgumentException e) { } |