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 | |
parent | 82257e9087dc405fdc45cba7d6867be53b5ec9b3 (diff) |
java: remove more dead code
found by looking for unused parameters (in Eclipse)
Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/testdocs/qadevlibs/source/test/Job.java | 79 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OListBoxModel.java | 4 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_forms/OTimeModel.java | 4 |
3 files changed, 44 insertions, 43 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; } } diff --git a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java index a1b7f1e200aa..8bc8f341f367 100644 --- a/qadevOOo/tests/java/mod/_forms/OListBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OListBoxModel.java @@ -179,7 +179,7 @@ public class OListBoxModel extends GenericModelTest { TestEnvironment tEnv = super.createTestEnvironment(Param, log); tEnv.addObjRelation("XUpdateBroadcaster.Checker", - new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); + new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName)); return tEnv; } @@ -190,7 +190,7 @@ public class OListBoxModel extends GenericModelTest { private XInterface ctrl = null; private String ChangePropertyName = null; - public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { + public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName) { formLoaderF = xl; this.ps = ps; this.ctrl = ctrl; diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java index c56a81bf1bb4..ce2603f0038a 100644 --- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java +++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java @@ -172,7 +172,7 @@ public class OTimeModel extends GenericModelTest { exclude.add("FormatKey"); tEnv.addObjRelation("XUpdateBroadcaster.Checker", - new Checker(m_XFormLoader, m_XPS, m_XCtrl, m_ChangePropertyName, m_ChangePropertyValue)); + new Checker(m_XFormLoader, m_XPS, m_XCtrl)); return tEnv; } @@ -181,7 +181,7 @@ public class OTimeModel extends GenericModelTest { private XPropertySet ps = null; private XInterface ctrl = null; - public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl, String ChangePropertyName, Object ChangePropertyValue) { + public Checker(XLoadable xl, XPropertySet ps, XInterface ctrl) { formLoaderF = xl; this.ps = ps; this.ctrl = ctrl; |