diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-13 10:08:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 10:24:10 +0200 |
commit | 34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch) | |
tree | 4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java | |
parent | 347926e8e57c1825261daa46c1886aa2ebf9571b (diff) |
java: remove dead methods
found by UCDetector
Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java b/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java index faecbe5e6513..f49e6a1d314e 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java +++ b/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java @@ -71,10 +71,7 @@ public class OfficeConnect - public static synchronized OfficeConnect getConnection() - { - return maConnection; - } + @@ -127,32 +124,7 @@ public class OfficeConnect - /** - * same as "createRemoteInstance()" but supports additional parameter for initializing created object - * - * @param lArguments optional arguments - * They are used to initialize new created service. - * @param aType Description of Parameter - * @param sServiceSpecifier Description of Parameter - * @return Description of the Returned Value - */ - public <T> T createRemoteInstanceWithArguments(Class<T> aType, String sServiceSpecifier, Any[] lArguments) - { - T aResult = null; - try - { - aResult = UnoRuntime.queryInterface( - aType, mxServiceManager.createInstanceWithArgumentsAndContext( - sServiceSpecifier, lArguments, mxOfficeContext)); - } - catch (com.sun.star.uno.Exception ex) - { - System.err.println("Couldn't create Service of type " + sServiceSpecifier + ": " + ex); - ex.printStackTrace(); - System.exit(0); - } - return aResult; - } + |