summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/Configuration.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 10:08:31 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 10:24:10 +0200
commit34bcf9b498bccb5c924f4cec850ff15d88df6f07 (patch)
tree4d9604ec8c3b73639338ec45a0618b5daa5cf0ed /wizards/com/sun/star/wizards/common/Configuration.java
parent347926e8e57c1825261daa46c1886aa2ebf9571b (diff)
java: remove dead methods
found by UCDetector Change-Id: I219caa8e680dba5a395541a778df6144841c4dde
Diffstat (limited to 'wizards/com/sun/star/wizards/common/Configuration.java')
-rw-r--r--wizards/com/sun/star/wizards/common/Configuration.java65
1 files changed, 10 insertions, 55 deletions
diff --git a/wizards/com/sun/star/wizards/common/Configuration.java b/wizards/com/sun/star/wizards/common/Configuration.java
index ab774d787e2e..3f0b93671965 100644
--- a/wizards/com/sun/star/wizards/common/Configuration.java
+++ b/wizards/com/sun/star/wizards/common/Configuration.java
@@ -112,27 +112,11 @@ public abstract class Configuration
set(new Integer(value), name, parent);
}
- public static void set(short value, String name, Object parent) throws Exception
- {
- set(new Short(value), name, parent);
- }
- public static void set(String value, String name, Object parent) throws Exception
- {
- set((Object) value, name, parent);
- }
- public static void set(boolean value, String name, Object parent) throws Exception
- {
- if (value)
- {
- set(Boolean.TRUE, name, parent);
- }
- else
- {
- set(Boolean.FALSE, name, parent);
- }
- }
+
+
+
public static void set(Object value, String name, Object parent) throws com.sun.star.lang.IllegalArgumentException, PropertyVetoException, UnknownPropertyException, WrappedTargetException
{
@@ -233,20 +217,11 @@ public abstract class Configuration
return getLocale(xMSF, "org.openoffice.Setup/L10N/", "ooSetupSystemLocale");
}
- public static Locale getUILocale(XMultiServiceFactory xMSF)
- {
- return getLocale(xMSF, "org.openoffice.Setup/L10N/", "ooLocale");
- }
- public static String getLocaleString(XMultiServiceFactory xMSF)
- {
- return getLocaleString(xMSF, "org.openoffice.Setup/L10N/", "ooSetupSystemLocale");
- }
- public static String getUILocaleString(XMultiServiceFactory xMSF)
- {
- return getLocaleString(xMSF, "org.openoffice.Setup/L10N/", "ooLocale");
- }
+
+
+
/**
* This method creates a new configuration node and adds it
@@ -290,28 +265,11 @@ public abstract class Configuration
}
}
- public static void commit(Object configView) throws WrappedTargetException
- {
- XChangesBatch xUpdateControl = UnoRuntime.queryInterface(XChangesBatch.class, configView);
- xUpdateControl.commitChanges();
- }
- public static void updateConfiguration(XMultiServiceFactory xmsf, String path, String name, ConfigNode node, Object param) throws com.sun.star.uno.Exception, com.sun.star.container.ElementExistException, NoSuchElementException, WrappedTargetException
- {
- Object view = Configuration.getConfigurationRoot(xmsf, path, true);
- addConfigNode(path, name);
- node.writeConfiguration(view, param);
- XChangesBatch xUpdateControl = UnoRuntime.queryInterface(XChangesBatch.class, view);
- xUpdateControl.commitChanges();
- }
- public static void removeNode(XMultiServiceFactory xmsf, String path, String name) throws com.sun.star.uno.Exception, com.sun.star.container.ElementExistException, NoSuchElementException, WrappedTargetException
- {
- Object view = Configuration.getConfigurationRoot(xmsf, path, true);
- removeNode(view, name);
- XChangesBatch xUpdateControl = UnoRuntime.queryInterface(XChangesBatch.class, view);
- xUpdateControl.commitChanges();
- }
+
+
+
public static String[] getNodeDisplayNames(XNameAccess _xNameAccessNode)
{
@@ -377,10 +335,7 @@ public abstract class Configuration
return null;
}
- public static XNameAccess getChildNodebyDisplayName(XNameAccess _xNameAccessNode, String _displayname)
- {
- return getChildNodebyDisplayName(_xNameAccessNode, _displayname, PropertyNames.PROPERTY_NAME);
- }
+
private static XNameAccess getChildNodebyDisplayName(XNameAccess _xNameAccessNode, String _displayname, String _nodename)
{