summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 16:27:18 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:24 +0200
commit8583da1e934a49791ef8d86668f3d5c3c5dae1d7 (patch)
treef092f708b7bb9a0a23ae82c1dc499a6e3fde4518 /odk
parent68cd011c907d00493bf2bfde531c1e244819596b (diff)
java: remove unused fields
found by UCDetector Change-Id: I4a7c56a9918054c23469de5680658e7b501f0165
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java8
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java10
-rw-r--r--odk/examples/java/Inspector/SourceCodeGenerator.java8
-rw-r--r--odk/examples/java/Inspector/UnoNode.java2
-rw-r--r--odk/examples/java/Inspector/XTreeControlProvider.java2
-rw-r--r--odk/examples/java/Inspector/XUnoPropertyNode.java2
7 files changed, 17 insertions, 17 deletions
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index 65c6b5301302..6c4bdf287926 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -70,7 +70,7 @@ public class DialogComponent {
private static final String __serviceName= "com.sun.star.test.TestDialogHandler";
- static byte[] _implementationId;
+
private XComponentContext m_xCmpCtx;
private XFrame m_xFrame;
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 345c70b59c2e..27df9513b953 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -113,9 +113,9 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
// protected XNameAccess m_xDlgModelNameAccess;
protected XControl m_xDialogControl;
protected XDialog xDialog;
- private XReschedule mxReschedule;
+
protected XWindowPeer m_xWindowPeer = null;
- private XTopWindow m_xTopWindow = null;
+
protected XFrame m_xFrame = null;
protected XComponent m_xComponent = null;
@@ -254,7 +254,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
// The scope of the control container is public...
m_xDlgContainer = UnoRuntime.queryInterface(XControlContainer.class, oUnoDialog);
- m_xTopWindow = UnoRuntime.queryInterface(XTopWindow.class, m_xDlgContainer);
+ UnoRuntime.queryInterface(XTopWindow.class, m_xDlgContainer);
// link the dialog and its model...
XControlModel xControlModel = UnoRuntime.queryInterface(XControlModel.class, oDialogModel);
@@ -317,7 +317,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
xWindow.setVisible(false);
Object tk = m_xMCF.createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext);
XToolkit xToolkit = UnoRuntime.queryInterface(XToolkit.class, tk);
- mxReschedule = UnoRuntime.queryInterface(XReschedule.class, xToolkit);
+ UnoRuntime.queryInterface(XReschedule.class, xToolkit);
m_xDialogControl.createPeer(xToolkit, _xWindowParentPeer);
m_xWindowPeer = m_xDialogControl.getPeer();
return m_xWindowPeer;
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
index af70c10cadc1..cc3b79cf19ea 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
@@ -58,13 +58,13 @@ class OnewayExecutor extends Thread
*/
public static final int REQUEST_FRAMEACTION = 1 ;
- public static final int REQUEST_STATUSCHANGED = 2 ;
- public static final int REQUEST_ADDSTATUSLISTENER = 3 ;
- public static final int REQUEST_REMOVESTATUSLISTENER = 4 ;
+
+
+
public static final int REQUEST_DISPATCH = 5 ;
- public static final boolean ENCODE_PARAMS = true ;
- public static final boolean DECODE_PARAMS = false ;
+
+
diff --git a/odk/examples/java/Inspector/SourceCodeGenerator.java b/odk/examples/java/Inspector/SourceCodeGenerator.java
index 165d917330cd..edd7c7eb8abb 100644
--- a/odk/examples/java/Inspector/SourceCodeGenerator.java
+++ b/odk/examples/java/Inspector/SourceCodeGenerator.java
@@ -545,7 +545,7 @@ public class SourceCodeGenerator {
private class UnoObjectDefinition{
private Object m_oUnoObject = null;
- Type aType = null;
+
private String sVariableStemName = "";
private String m_sCentralVariableStemName = "";
private String sVariableName = "";
@@ -839,7 +839,7 @@ private class UnoObjectDefinition{
private class JavaCodeGenerator implements XLanguageSourceCodeGenerator{
- String sStatementsCode = "";
+
private boolean bAddAnyConverter = false;
private boolean bIsPropertyUnoObjectDefined = false;
@@ -1186,7 +1186,7 @@ private class UnoObjectDefinition{
private class BasicCodeGenerator implements XLanguageSourceCodeGenerator{
- String sStatementsCode = "";
+
public BasicCodeGenerator(){
}
@@ -1390,7 +1390,7 @@ private class UnoObjectDefinition{
}
private class CPlusPlusCodeGenerator implements XLanguageSourceCodeGenerator{
- String sStatementsCode = "";
+
private boolean bIncludeStringHeader = false;
private boolean bIncludeAny = false;
private boolean bIncludeSequenceHeader = false;
diff --git a/odk/examples/java/Inspector/UnoNode.java b/odk/examples/java/Inspector/UnoNode.java
index fa48a25a9dd9..0439554e0108 100644
--- a/odk/examples/java/Inspector/UnoNode.java
+++ b/odk/examples/java/Inspector/UnoNode.java
@@ -50,7 +50,7 @@ import com.sun.star.util.XURLTransformer;
public class UnoNode{
- String sPath = null;
+
Object m_oUnoObject;
private XMultiComponentFactory m_xMultiComponentFactory;
private XComponentContext m_xComponentContext;
diff --git a/odk/examples/java/Inspector/XTreeControlProvider.java b/odk/examples/java/Inspector/XTreeControlProvider.java
index ca40d70afae2..ca67ac364bbc 100644
--- a/odk/examples/java/Inspector/XTreeControlProvider.java
+++ b/odk/examples/java/Inspector/XTreeControlProvider.java
@@ -39,7 +39,7 @@ import com.sun.star.uno.Type;
public interface XTreeControlProvider {
- public static String sTitle = "User defined";
+
public String enableFilterElements(XUnoNode _oUnoNode);
diff --git a/odk/examples/java/Inspector/XUnoPropertyNode.java b/odk/examples/java/Inspector/XUnoPropertyNode.java
index e4aa4caba668..96d1f2c925fc 100644
--- a/odk/examples/java/Inspector/XUnoPropertyNode.java
+++ b/odk/examples/java/Inspector/XUnoPropertyNode.java
@@ -38,7 +38,7 @@ public interface XUnoPropertyNode extends XUnoNode {
public static int nDEFAULT = 0;
public static int nPROPERTYSETINFOTYPE = 1;
- public static int nPROPERTYVALUETYPE = 2;
+
public Object getUnoReturnObject();