changeset 7220:9b0627dd3de8

[Accessibility] removing accessibilityIndexOfChild(), it never fixed anything (it was added during early investigation on virtualizing items and children).
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Mon, 09 Jun 2014 15:12:36 -0700
parents 8a087879ffc5
children e67939cbeff2
files modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Mon Jun 09 14:33:40 2014 -0700
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/mac/MacAccessible.java	Mon Jun 09 15:12:36 2014 -0700
@@ -1554,16 +1554,7 @@
     }
 
     long accessibilityIndexOfChild(long child) {
-        //TODO this method might not be necessary
-        ObservableList<Node> children = (ObservableList<Node>)getAttribute(CHILDREN);
-        if (children != null) {
-            for (int i = 0; i < children.size(); i++) {
-                Node node = children.get(i);
-                if (child == getAccessible(node)) {
-                    return i;
-                }
-            }
-        }
+        /* Forward to native code */
         return -1;
     }