summaryrefslogtreecommitdiff
path: root/toolkit/test
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 09:54:58 +0200
committerNoel Grandin <noel@peralex.com>2014-08-05 11:31:50 +0200
commit0c5f51ebbcb7e22baa913e2012e3dcfcc6cf7897 (patch)
tree3d441110176e37c1a6ba2d15a3653d5023863075 /toolkit/test
parentd26540bb05b0443e7988da34372c86f88cbf1f6c (diff)
java: remove commented out code
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
Diffstat (limited to 'toolkit/test')
-rw-r--r--toolkit/test/accessibility/AccTreeNode.java2
-rw-r--r--toolkit/test/accessibility/AccessibilityTree.java2
-rw-r--r--toolkit/test/accessibility/CanvasShape.java1
-rw-r--r--toolkit/test/accessibility/NodeHandler.java9
-rw-r--r--toolkit/test/accessibility/TextUpdateListener.java40
-rw-r--r--toolkit/test/accessibility/tools/NameProvider.java2
6 files changed, 1 insertions, 55 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java
index 50fc1b55cf2d..af1c333cf05b 100644
--- a/toolkit/test/accessibility/AccTreeNode.java
+++ b/toolkit/test/accessibility/AccTreeNode.java
@@ -274,7 +274,7 @@ class AccTreeNode
handlers show no children */
public boolean isLeaf()
{
- return (maHandlers.size() == 0);// || (getChildCount() == 0);
+ return (maHandlers.size() == 0);
}
public boolean equals (Object aOther)
diff --git a/toolkit/test/accessibility/AccessibilityTree.java b/toolkit/test/accessibility/AccessibilityTree.java
index 36f24bff2ae0..67c2db5a3cb9 100644
--- a/toolkit/test/accessibility/AccessibilityTree.java
+++ b/toolkit/test/accessibility/AccessibilityTree.java
@@ -151,8 +151,6 @@ public class AccessibilityTree
// return first expanded object
TreePath aFirst = null;
- // System.out.print ("e");
-
try
{
// get 'our' object
diff --git a/toolkit/test/accessibility/CanvasShape.java b/toolkit/test/accessibility/CanvasShape.java
index 69e3dfba5bc1..cf0f49220203 100644
--- a/toolkit/test/accessibility/CanvasShape.java
+++ b/toolkit/test/accessibility/CanvasShape.java
@@ -32,7 +32,6 @@ class CanvasShape
public final Color maSelectionColor = Color.green;
public final Color maFocusColor = Color.blue;
- // public AccessibleObject (XAccessibleContext xContext, TreePath aPath)
public CanvasShape (AccTreeNode aNode)
{
maNode = aNode;
diff --git a/toolkit/test/accessibility/NodeHandler.java b/toolkit/test/accessibility/NodeHandler.java
index cad4952df567..e6da882ac075 100644
--- a/toolkit/test/accessibility/NodeHandler.java
+++ b/toolkit/test/accessibility/NodeHandler.java
@@ -47,11 +47,6 @@ abstract class NodeHandler
}
}
- /** This factory method creates an individual handler for the specified
- object that may hold information to accelerate the access to its children.
- */
- // public abstract NodeHandler createHandler (Object aObject);
-
/** return the number of children this object has */
public int getChildCount(Object aObject)
{
@@ -135,10 +130,6 @@ abstract class NodeHandler
return false;
}
- /** change this child's value */
- // public void setChild(Object aObject, int nIndex) { }
-
-
/** get names of supported actions */
public String[] getActions (AccessibleTreeNode aNode)
{
diff --git a/toolkit/test/accessibility/TextUpdateListener.java b/toolkit/test/accessibility/TextUpdateListener.java
index 4364d5598884..cd851140cbec 100644
--- a/toolkit/test/accessibility/TextUpdateListener.java
+++ b/toolkit/test/accessibility/TextUpdateListener.java
@@ -52,28 +52,6 @@ class TextUpdateListener implements TreeModelListener
// first child! Then we call updateText
updateText( xText, aNode.toString() );
}
- else
- {
- // JDK 1.4:
- // // check for pattern "Selection:"
- // Matcher m = Pattern.compile(
- // "selection: \\[(-?[0-9]+),(-?[0-9]+)\\] \".*" ).
- // matcher( aNode.toString() );
- // if( m.matches() )
- // {
- // try
- // {
- // // aha! Selection:
- // setSelection( xText,
- // Integer.parseInt(m.group(1)),
- // Integer.parseInt(m.group(2)) );
- // }
- // catch( NumberFormatException f )
- // {
- // // ignore
- // }
- // }
- }
}
}
}
@@ -165,22 +143,4 @@ class TextUpdateListener implements TreeModelListener
}
}
- // /** replace the given node with a new xText node */
- // void updateNode( XAccessibleText xText,
- // DefaultMutableTreeNode aNode )
- // {
- // // create a new node
- // DefaultMutableTreeNode aNew = newTextTreeNode( xText );
-
- // // get parent (must be DefaultMutableTreeNode)
- // DefaultMutableTreeNode aParent =
- // (DefaultMutableTreeNode)aNode.getParent();
- // if( aParent != null )
- // {
- // // remove old sub-tree, and insert new one
- // int nIndex = aParent.getIndex( aNode );
- // aParent.remove( nIndex );
- // aParent.insert( aNew, nIndex );
- // }
- // }
}
diff --git a/toolkit/test/accessibility/tools/NameProvider.java b/toolkit/test/accessibility/tools/NameProvider.java
index ccd735610001..09ae5ea3e420 100644
--- a/toolkit/test/accessibility/tools/NameProvider.java
+++ b/toolkit/test/accessibility/tools/NameProvider.java
@@ -100,7 +100,6 @@ public class NameProvider
maStateMap.put (new Integer (AccessibleStateType.ARMED), "ARMED");
maStateMap.put (new Integer (AccessibleStateType.BUSY), "BUSY");
maStateMap.put (new Integer (AccessibleStateType.CHECKED), "CHECKED");
- // maStateMap.put (new Integer (AccessibleStateType.COLLAPSED), "COLLAPSED");
maStateMap.put (new Integer (AccessibleStateType.DEFUNC), "DEFUNC");
maStateMap.put (new Integer (AccessibleStateType.EDITABLE), "EDITABLE");
maStateMap.put (new Integer (AccessibleStateType.ENABLED), "ENABLED");
@@ -127,7 +126,6 @@ public class NameProvider
maStateMap.put (new Integer (AccessibleStateType.VISIBLE), "VISIBLE");
maStateMap.put (new Integer (AccessibleStateType.MANAGES_DESCENDANTS),
"MANAGES_DESCENDANTS");
- // maStateMap.put (new Integer (AccessibleStateType.INCONSISTENT),"INCONSISTENT");
maEventMap.put (new Integer (0),