summaryrefslogtreecommitdiff
path: root/toolkit/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-06 08:38:10 +0200
committerNoel Grandin <noel@peralex.com>2014-08-11 12:33:02 +0200
commitd5a31b221510a506a9c43d2c9f44c55405ce13fd (patch)
tree16c4444d46fb439a1601d2d4535e1770da318e05 /toolkit/test
parent41709cc2688738f091a4b17839fe853caa5a0bfd (diff)
java: remove unused parameters
Change-Id: Ifc44c51ddbd21fabaad686bc3d38e2dab54d97aa
Diffstat (limited to 'toolkit/test')
-rw-r--r--toolkit/test/accessibility/AccTreeNode.java14
-rw-r--r--toolkit/test/accessibility/AccessibilityTreeModel.java1
-rw-r--r--toolkit/test/accessibility/CanvasShape.java10
-rw-r--r--toolkit/test/accessibility/NodeHandler.java12
4 files changed, 10 insertions, 27 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java
index af1c333cf05b..ab673ed7bdc4 100644
--- a/toolkit/test/accessibility/AccTreeNode.java
+++ b/toolkit/test/accessibility/AccTreeNode.java
@@ -83,7 +83,7 @@ class AccTreeNode
HandlerDescriptor aDescriptor = maHandlers.get(i);
aDescriptor.maHandler = aDescriptor.maHandler.createHandler (mxContext);
aDescriptor.mnChildCount =
- aDescriptor.maHandler.getChildCount (this);
+ aDescriptor.maHandler.getChildCount ();
}
}
@@ -161,7 +161,7 @@ class AccTreeNode
HandlerDescriptor aDescriptor = maHandlers.get(i);
if (aDescriptor.mnChildCount < 0)
aDescriptor.mnChildCount =
- aDescriptor.maHandler.getChildCount (this);
+ aDescriptor.maHandler.getChildCount ();
return aDescriptor;
}
@@ -211,7 +211,7 @@ class AccTreeNode
// search with next handler
HandlerDescriptor aDescriptor = getHandlerDescriptor (i);
if (nIndex < aDescriptor.mnChildCount)
- return aDescriptor.maHandler.getChildNoCreate (this, nIndex);
+ return aDescriptor.maHandler.getChildNoCreate (nIndex);
else
nIndex -= aDescriptor.mnChildCount;
}
@@ -236,8 +236,8 @@ class AccTreeNode
HandlerDescriptor aDescriptor = getHandlerDescriptor (i);
if (nIndex < aDescriptor.mnChildCount)
{
- bStatus = aDescriptor.maHandler.removeChild (this, nIndex);
- aDescriptor.mnChildCount = aDescriptor.maHandler.getChildCount (this);
+ bStatus = aDescriptor.maHandler.removeChild (nIndex);
+ aDescriptor.mnChildCount = aDescriptor.maHandler.getChildCount ();
break;
}
else
@@ -334,7 +334,7 @@ class AccTreeNode
{
AccessibleTreeHandler aHandler = (AccessibleTreeHandler)aDescriptor.maHandler;
AccessibleTreeNode aNode = aHandler.addAccessibleChild (this, xChild);
- aDescriptor.mnChildCount = aHandler.getChildCount (this);
+ aDescriptor.mnChildCount = aHandler.getChildCount ();
return aNode;
}
}
@@ -363,7 +363,7 @@ class AccTreeNode
{
aDescriptor.maHandler.update(this);
// Get updated number of children.
- int nChildCount = aDescriptor.maHandler.getChildCount (this);
+ int nChildCount = aDescriptor.maHandler.getChildCount ();
aDescriptor.mnChildCount = nChildCount;
// Fill in the indices of the updated children.
for (int j=0; j<nChildCount; j++)
diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java
index a7cbbaf13e70..6cec54febf75 100644
--- a/toolkit/test/accessibility/AccessibilityTreeModel.java
+++ b/toolkit/test/accessibility/AccessibilityTreeModel.java
@@ -19,7 +19,6 @@
import java.util.ArrayList;
import javax.swing.event.TreeModelEvent;
-import javax.swing.event.TreeModelListener;
import javax.swing.tree.TreePath;
import com.sun.star.accessibility.XAccessible;
diff --git a/toolkit/test/accessibility/CanvasShape.java b/toolkit/test/accessibility/CanvasShape.java
index cf0f49220203..736d2f3101c6 100644
--- a/toolkit/test/accessibility/CanvasShape.java
+++ b/toolkit/test/accessibility/CanvasShape.java
@@ -240,16 +240,6 @@ class CanvasShape
- /** Callback for disposing events.
- */
- public void disposing (com.sun.star.lang.EventObject e)
- {
- System.out.println ("Disposing");
- }
-
-
-
-
/** Compute whether the specified point lies inside the object's
bounding box.
*/
diff --git a/toolkit/test/accessibility/NodeHandler.java b/toolkit/test/accessibility/NodeHandler.java
index e6da882ac075..73a36aa917a4 100644
--- a/toolkit/test/accessibility/NodeHandler.java
+++ b/toolkit/test/accessibility/NodeHandler.java
@@ -48,7 +48,7 @@ abstract class NodeHandler
}
/** return the number of children this object has */
- public int getChildCount(Object aObject)
+ public int getChildCount()
{
synchronized (maChildList)
{
@@ -77,7 +77,7 @@ abstract class NodeHandler
}
}
- public AccessibleTreeNode getChildNoCreate (AccessibleTreeNode aParent, int nIndex)
+ public AccessibleTreeNode getChildNoCreate (int nIndex)
{
synchronized (maChildList)
{
@@ -87,7 +87,7 @@ abstract class NodeHandler
/** Remove the specified child from the list of children.
*/
- public boolean removeChild (AccessibleTreeNode aNode, int nIndex)
+ public boolean removeChild (int nIndex)
{
try
{
@@ -124,12 +124,6 @@ abstract class NodeHandler
// They have default implementations for no actions and read-only.
- /** May this child be changed? */
- public boolean isChildEditable (AccessibleTreeNode aNode, int nIndex)
- {
- return false;
- }
-
/** get names of supported actions */
public String[] getActions (AccessibleTreeNode aNode)
{