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 /javaunohelper | |
parent | 27459c71ef5f6f27749de36334e8a20fe4731e62 (diff) |
java: remove unused variables
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java | 3 | ||||
-rw-r--r-- | javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java | 30 |
2 files changed, 15 insertions, 18 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java index 318a716fc86f..4999463247e4 100644 --- a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java +++ b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java @@ -125,12 +125,11 @@ public class InputStreamToXInputStreamAdapter implements XInputStream { public void skipBytes(int n) throws com.sun.star.io.IOException { - int avail; int tmpLongVal = n; int tmpIntVal; try { - avail = iIn.available(); + iIn.available(); } catch (IOException e) { throw new com.sun.star.io.IOException(e.toString()); } 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 e8bef98a427c..331c37618b1c 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 @@ -167,14 +167,13 @@ public class MultiTypeInterfaceContainer_Test boolean r[]= new boolean[50]; int i= 0; - int ci= 0; - ci= cont.addInterface(new Type(XInterface.class), obj1); - ci= cont.addInterface(new Type(XInterface.class), obj2); - ci= cont.addInterface(new Type(XInterface.class), obj3); - ci= cont.addInterface(new Type(XWeak.class), obj1); - ci= cont.addInterface(new Type(XWeak.class), obj2); - ci= cont.addInterface(null, obj1); - ci= cont.addInterface(new Type(XTypeProvider.class), null); + cont.addInterface(new Type(XInterface.class), obj1); + cont.addInterface(new Type(XInterface.class), obj2); + cont.addInterface(new Type(XInterface.class), obj3); + cont.addInterface(new Type(XWeak.class), obj1); + cont.addInterface(new Type(XWeak.class), obj2); + cont.addInterface(null, obj1); + cont.addInterface(new Type(XTypeProvider.class), null); InterfaceContainer icont= null; icont= cont.getContainer( new Type(XTypeProvider.class)); @@ -239,14 +238,13 @@ public class MultiTypeInterfaceContainer_Test cont.clear(); Type[] types= cont.getContainedTypes(); r[i++]= types.length == 0; - int ci; - ci= cont.addInterface(new Type(XInterface.class), obj1); - ci= cont.addInterface(new Type(XInterface.class), obj2); - ci= cont.addInterface(new Type(XInterface.class), obj3); - ci= cont.addInterface(new Type(XWeak.class), obj1); - ci= cont.addInterface(new Type(XWeak.class), obj2); - ci= cont.addInterface(null, obj1); - ci= cont.addInterface(new Type(XTypeProvider.class), null); + cont.addInterface(new Type(XInterface.class), obj1); + cont.addInterface(new Type(XInterface.class), obj2); + cont.addInterface(new Type(XInterface.class), obj3); + cont.addInterface(new Type(XWeak.class), obj1); + cont.addInterface(new Type(XWeak.class), obj2); + cont.addInterface(null, obj1); + cont.addInterface(new Type(XTypeProvider.class), null); types= cont.getContainedTypes(); r[i++]= types.length == 3; cont.clear(); |