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 /toolkit/test | |
parent | 82257e9087dc405fdc45cba7d6867be53b5ec9b3 (diff) |
java: remove more dead code
found by looking for unused parameters (in Eclipse)
Change-Id: I03cf9bc8312e59747b2d0ac153ee2fc8d76be893
Diffstat (limited to 'toolkit/test')
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 2 | ||||
-rw-r--r-- | toolkit/test/accessibility/AccessibleTreeNode.java | 7 | ||||
-rw-r--r-- | toolkit/test/accessibility/NodeFactory.java | 2 | ||||
-rw-r--r-- | toolkit/test/accessibility/StringNode.java | 5 |
4 files changed, 9 insertions, 7 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java index aae3ed5758d4..1ce46768423b 100644 --- a/toolkit/test/accessibility/AccTreeNode.java +++ b/toolkit/test/accessibility/AccTreeNode.java @@ -56,7 +56,7 @@ class AccTreeNode private XAccessibleText mxText; private XAccessibleTable mxTable; - public AccTreeNode (XAccessible xAccessible, XAccessibleContext xContext, Object aDisplay, AccessibleTreeNode aParent) + public AccTreeNode (XAccessibleContext xContext, Object aDisplay, AccessibleTreeNode aParent) { super (aDisplay, aParent); diff --git a/toolkit/test/accessibility/AccessibleTreeNode.java b/toolkit/test/accessibility/AccessibleTreeNode.java index 951b86e8179c..22fa035f95f4 100644 --- a/toolkit/test/accessibility/AccessibleTreeNode.java +++ b/toolkit/test/accessibility/AccessibleTreeNode.java @@ -23,7 +23,7 @@ import com.sun.star.lang.IndexOutOfBoundsException; /** Base class for all tree nodes. */ -class AccessibleTreeNode +abstract class AccessibleTreeNode { /// The parent node. It is null for the root node. private AccessibleTreeNode maParent; @@ -70,10 +70,7 @@ class AccessibleTreeNode throw new IndexOutOfBoundsException(); } - public int indexOf (AccessibleTreeNode aNode) - { - return -1; - } + public abstract int indexOf (AccessibleTreeNode aNode); /** Create a path to this node by first asking the parent for its path and then appending this object. diff --git a/toolkit/test/accessibility/NodeFactory.java b/toolkit/test/accessibility/NodeFactory.java index 51b126a7a4ee..7e1d9f585c3d 100644 --- a/toolkit/test/accessibility/NodeFactory.java +++ b/toolkit/test/accessibility/NodeFactory.java @@ -115,7 +115,7 @@ class NodeFactory // create node, and add default handlers - AccTreeNode aNode = new AccTreeNode (xAccessible, xContext, sDisplay, aParent); + AccTreeNode aNode = new AccTreeNode (xContext, sDisplay, aParent); addDefaultHandlers (aNode, xContext); return aNode; diff --git a/toolkit/test/accessibility/StringNode.java b/toolkit/test/accessibility/StringNode.java index f424c3b6c17c..f6660e44a947 100644 --- a/toolkit/test/accessibility/StringNode.java +++ b/toolkit/test/accessibility/StringNode.java @@ -28,4 +28,9 @@ class StringNode { super (aDisplayObject, aParent); } + + @Override + public int indexOf(AccessibleTreeNode aNode) { + return -1; + } } |