From 0c5f51ebbcb7e22baa913e2012e3dcfcc6cf7897 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Aug 2014 09:54:58 +0200 Subject: java: remove commented out code Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36 --- .../qa/complex/extensions/OfficeResourceLoader.java | 15 --------------- extensions/test/pgp/TestPGP.java | 12 ------------ 2 files changed, 27 deletions(-) (limited to 'extensions') diff --git a/extensions/qa/complex/extensions/OfficeResourceLoader.java b/extensions/qa/complex/extensions/OfficeResourceLoader.java index 45e91e338639..cbc57f2fc739 100644 --- a/extensions/qa/complex/extensions/OfficeResourceLoader.java +++ b/extensions/qa/complex/extensions/OfficeResourceLoader.java @@ -44,21 +44,6 @@ public class OfficeResourceLoader { } - /* ------------------------------------------------------------------ */ -// public String[] getTestMethodNames() -// { -// return new String[] { -// "checkSimpleStringAccess", -// "checkLocales" -// }; -// } - - /* ------------------------------------------------------------------ */ -// public String getTestObjectName() -// { -// return "Extensions - OfficeResourceLoader"; -// } - /* ------------------------------------------------------------------ */ @Before public void before() throws com.sun.star.uno.Exception, java.lang.Exception { diff --git a/extensions/test/pgp/TestPGP.java b/extensions/test/pgp/TestPGP.java index 78d4285f707d..d11164cb0187 100644 --- a/extensions/test/pgp/TestPGP.java +++ b/extensions/test/pgp/TestPGP.java @@ -33,7 +33,6 @@ import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; import com.sun.star.uno.XNamingService; -// import com.sun.star.comp.bootstrap.Bootstrap; @@ -57,7 +56,6 @@ public class TestPGP { System.err.println(" couldn't get XSet from ServiceFactory"); return; } -// try{ SimplePGPMailerFactoryReg mailerReg= new SimplePGPMailerFactoryReg(); XSingleServiceFactory factory= mailerReg.getServiceFactory( "com.sun.star.pgp.SimplePGPMailerImpl", rSmgr, null, null); @@ -69,10 +67,6 @@ public class TestPGP { set.insert(factory ); System.err.println("PGP factory inserted into service manager"); -// }catch(Exception e ){ -// System.err.println( "exception caught in TestPGP"); -// } - } } @@ -84,7 +78,6 @@ public class TestPGP { System.exit(-1); } -// try { XUnoUrlResolver resolver = UnoUrlResolver.create(Bootstrap.createInitialComponentContext(null)); XConnector xConnector = UnoRuntime.queryInterface(XConnector.class, resolver.resolve("com.sun.star.connection.Connector")); @@ -94,16 +87,11 @@ public class TestPGP { IBridge iBridge = UnoRuntime.getBridgeByName("java", null, "remote", null, new Object[]{"iiop", xConnection, null}); Object rInitialObject = iBridge.mapInterfaceFrom(rootOid, new Type(XInterface.class)); -// Object rInitialObject = xBridge.getInstance("NamingService"); if(rInitialObject != null) { System.err.println("got the remote object"); doSomething(rInitialObject); } -// } -// catch (Exception exception) { -// System.err.println("Exception thrown:" + exception); -// } } } -- cgit