[orca] Delete some more unused methods



commit 57ee06ad5dd686f543f407fd083e4a833d02360b
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Aug 21 00:01:00 2014 -0400

    Delete some more unused methods

 src/orca/scripts/toolkits/Gecko/script.py |   71 -----------------------------
 1 files changed, 0 insertions(+), 71 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 51c4d07..d50ba90 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1930,77 +1930,6 @@ class Script(default.Script):
                             return target
 
         return None
-
-    def getAutocompleteEntry(self, obj):
-        """Returns the ROLE_ENTRY object of a ROLE_AUTOCOMPLETE object or
-        None if the entry cannot be found.
-        """
-
-        for child in obj:
-            if child and (child.getRole() == pyatspi.ROLE_ENTRY):
-                return child
-
-        return None
-
-    def getCellCoordinates(self, obj):
-        """Returns the [row, col] of a ROLE_TABLE_CELL or [0, 0]
-        if the coordinates cannot be found.
-        """
-        if obj.getRole() != pyatspi.ROLE_TABLE_CELL:
-            obj = self.utilities.ancestorWithRole(
-                obj, [pyatspi.ROLE_TABLE_CELL], [pyatspi.ROLE_DOCUMENT_FRAME])
-
-        parentTable = self.utilities.ancestorWithRole(
-            obj, [pyatspi.ROLE_TABLE], [pyatspi.ROLE_DOCUMENT_FRAME])
-        try:
-            table = parentTable.queryTable()
-        except:
-            pass
-        else:
-            index = self.utilities.cellIndex(obj)
-            row = table.getRowAtIndex(index)
-            col = table.getColumnAtIndex(index)
-            return [row, col]
-
-        return [0, 0]
-
-    def isBlankCell(self, obj):
-        """Returns True if the table cell is empty or consists of a single
-        non-breaking space.
-
-        Arguments:
-        - obj: the table cell to examime
-        """
-
-        text = self.utilities.displayedText(obj)
-        if text and text != '\u00A0':
-            return False
-        else:
-            for child in obj:
-                if child.getRole() == pyatspi.ROLE_LINK:
-                    return False
-
-            return True
-
-    def pursueForFlatReview(self, obj):
-        """Determines if we should look any further at the object
-        for flat review."""
-
-        # It should be enough to check for STATE_SHOWING, but Gecko seems
-        # to reverse STATE_SHOWING and STATE_VISIBLE, exposing STATE_SHOWING
-        # for objects which are offscreen. So, we'll check for both. See
-        # bug #542833. [[[TODO - JD: We're putting this check in just this
-        # script for now to be on the safe side. Consider for the default
-        # script as well?]]]
-        #
-        try:
-            state = obj.getState()
-        except:
-            pass
-            return False
-        else:
-            return state.contains(pyatspi.STATE_SHOWING) \
-                   and state.contains(pyatspi.STATE_VISIBLE)
  
     def getHeadingLevel(self, obj):
         """Determines the heading level of the given object.  A value


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]