From e7a474b29ad87c03bdc3253cc62521b8af3a93e0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Aug 2014 11:30:20 +0200 Subject: java: remove unused variables Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b --- stoc/test/javavm/testapplet/TestApplet.java | 4 ++-- stoc/test/javavm/testcomponent/TestComponent.java | 17 +++-------------- 2 files changed, 5 insertions(+), 16 deletions(-) (limited to 'stoc') diff --git a/stoc/test/javavm/testapplet/TestApplet.java b/stoc/test/javavm/testapplet/TestApplet.java index d5484e372c7f..6d6176076df9 100644 --- a/stoc/test/javavm/testapplet/TestApplet.java +++ b/stoc/test/javavm/testapplet/TestApplet.java @@ -45,10 +45,10 @@ public class TestApplet extends java.applet.Applet { // local connection URL url= new URL("http://localhost:8080/index.html"); - InputStream is= url.openStream(); + url.openStream(); // remote connection url= new URL("http://www.w3.org/index.html"); - is= url.openStream(); + url.openStream(); }catch( MalformedURLException mue) { }catch( IOException e) { String s= e.getMessage(); diff --git a/stoc/test/javavm/testcomponent/TestComponent.java b/stoc/test/javavm/testcomponent/TestComponent.java index 81361b27d538..958037eac0c9 100644 --- a/stoc/test/javavm/testcomponent/TestComponent.java +++ b/stoc/test/javavm/testcomponent/TestComponent.java @@ -62,18 +62,7 @@ public class TestComponent implements XServiceInfo, XTypeProvider // XServiceName public String getImplementationName( ) { - String a= "the functions are for debugging"; - String prop= System.getProperty("ftp.proxyHost"); - prop= System.getProperty("ftp.proxyPort"); - prop= System.getProperty("http.proxyHost"); - prop= System.getProperty("http.proxyPort"); - prop= System.getProperty("ftp.nonProxyHosts"); - prop= System.getProperty("http.nonProxyHosts"); - prop= System.getProperty("socksProxyHost"); - prop= System.getProperty("socksProxyPort"); - - prop= System.getProperty("stardiv.security.disableSecurity"); - prop= System.getProperty("appletviewer.security.mode"); + // the functions are for debugging // Test security settings File f= new File("c:/temp/javasecurity.txt"); @@ -82,10 +71,10 @@ public class TestComponent implements XServiceInfo, XTypeProvider // local connection URL url= new URL("http://localhost:8080/index.html"); - InputStream is= url.openStream(); + url.openStream(); // remote connection url= new URL("http://www.w3.org/index.html"); - is= url.openStream(); + url.openStream(); }catch( MalformedURLException mue) { }catch( IOException e) { String s= e.getMessage(); -- cgit