diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-18 11:43:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-05 09:59:03 +0200 |
commit | 10039462dfebdf6727529ca38b4105fcd7dd5727 (patch) | |
tree | dae25c3bdfa24dac171b10a2ac095f169b883fe5 /qadevOOo/testdocs | |
parent | 82257e9087dc405fdc45cba7d6867be53b5ec9b3 (diff) |
java: remove more dead code
found by looking for unused parameters (in Eclipse)
Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
Diffstat (limited to 'qadevOOo/testdocs')
-rw-r--r-- | qadevOOo/testdocs/qadevlibs/source/test/Job.java | 79 |
1 files changed, 40 insertions, 39 deletions
diff --git a/qadevOOo/testdocs/qadevlibs/source/test/Job.java b/qadevOOo/testdocs/qadevlibs/source/test/Job.java index 86e9a42dbf97..d180d557b19b 100644 --- a/qadevOOo/testdocs/qadevlibs/source/test/Job.java +++ b/qadevOOo/testdocs/qadevlibs/source/test/Job.java @@ -28,34 +28,36 @@ import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.registry.XRegistryKey; import com.sun.star.comp.loader.FactoryHelper; - public class Job { static public class _Implementation implements XServiceInfo, XTypeProvider, XJob, XNamed { - static private final String __serviceName = "test.Job"; + static private final String __serviceName = "test.Job"; Object oDoc = null; String actionType = null; String actionParm = null; + public _Implementation(XMultiServiceFactory xMSF) { + } - public _Implementation(XMultiServiceFactory xMSF) { - } - - // XServiceInfo - public String getImplementationName() throws com.sun.star.uno.RuntimeException { - return getClass().getName(); - } + // XServiceInfo + public String getImplementationName() + throws com.sun.star.uno.RuntimeException { + return getClass().getName(); + } - public boolean supportsService(String serviceName) throws com.sun.star.uno.RuntimeException { - return __serviceName.equals(serviceName); - } + public boolean supportsService(String serviceName) + throws com.sun.star.uno.RuntimeException { + return __serviceName.equals(serviceName); + } - public String[] getSupportedServiceNames() throws com.sun.star.uno.RuntimeException { - return new String[] {__serviceName}; - } + public String[] getSupportedServiceNames() + throws com.sun.star.uno.RuntimeException { + return new String[] { __serviceName }; + } private static int executed = 0; + public Object execute(NamedValue[] args) { executed++; @@ -63,41 +65,40 @@ public class Job { } public String getName() { - return "" + executed; + return "" + executed; } public void setName(String n) { } - public byte[] getImplementationId() { - return new byte[0]; - } + public byte[] getImplementationId() { + return new byte[0]; + } - public Type[] getTypes() { - Class<?> interfaces[] = getClass().getInterfaces(); - Type types[] = new Type[interfaces.length]; - for(int i = 0; i < interfaces.length; ++ i) - types[i] = new Type(interfaces[i]); - return types; - } + public Type[] getTypes() { + Class<?> interfaces[] = getClass().getInterfaces(); + Type types[] = new Type[interfaces.length]; + for (int i = 0; i < interfaces.length; ++i) + types[i] = new Type(interfaces[i]); + return types; + } } - public static XSingleServiceFactory __getServiceFactory(XMultiServiceFactory multiFactory, - XRegistryKey regKey) { - XSingleServiceFactory xSingleServiceFactory = null; - xSingleServiceFactory = FactoryHelper.getServiceFactory(_Implementation.class, - _Implementation.__serviceName, - multiFactory, - regKey); - return xSingleServiceFactory; + public static XSingleServiceFactory __getServiceFactory( + XMultiServiceFactory multiFactory, XRegistryKey regKey) { + XSingleServiceFactory xSingleServiceFactory = null; + xSingleServiceFactory = FactoryHelper.getServiceFactory( + _Implementation.class, _Implementation.__serviceName, + multiFactory, regKey); + return xSingleServiceFactory; } - public static boolean __writeRegistryServiceInfo(XRegistryKey regKey) { - boolean result = true; - result = FactoryHelper.writeRegistryServiceInfo(_Implementation.class.getName(), - _Implementation.__serviceName, regKey); - return result; + boolean result = true; + result = FactoryHelper.writeRegistryServiceInfo( + _Implementation.class.getName(), _Implementation.__serviceName, + regKey); + return result; } } |