[orca] Remove some old, unused methods



commit c179f33fbfc3e54b0e133f066da8e322764bf02d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jan 11 12:00:29 2017 -0500

    Remove some old, unused methods

 src/orca/script.py |   51 ---------------------------------------------------
 1 files changed, 0 insertions(+), 51 deletions(-)
---
diff --git a/src/orca/script.py b/src/orca/script.py
index bf8379c..30ebeac 100644
--- a/src/orca/script.py
+++ b/src/orca/script.py
@@ -155,25 +155,6 @@ class Script:
 
         return keybindings.KeyBindings()
 
-    def getKeyBindingsForInputHandler(self, inputEventHandler):
-        """ Returns a KeyBindings object with the list of KeyBindings that
-        matche the passed inputEventHandler as argument (at least the
-        inputEventHandler that has the same handler function)
-
-        Arguments:
-        - inputEventHandler: an instance of input_event.InputEventHandler
-
-        Returns an instance of keybindings.KeyBindings populated with
-        keybindings.KeyBinding instances that match the inputEventHandler.
-        """
-        matches = keybindings.KeyBindings()
-
-        for binding in self.keyBindings.keyBindings:
-            if inputEventHandler == binding.handler:
-                matches.add(binding)
-
-        return matches
-
     def getBrailleBindings(self):
         """Defines the braille bindings for this script.
 
@@ -182,20 +163,6 @@ class Script:
         """
         return {}
 
-    def getBrailleCommandsForInputHandler(self, inputEventHandler):
-        """Returns a list of BrlTTY commands (they're in braille.py) that
-        match the given inputEventHandler passed as argument.
-
-        Arguments:
-        - inputEventHandler: an instance of input_event.InputEventHandler
-
-        Returns a list (possibly empty) of BrlTTY commands (they're in
-        braille.py) that match the given inputEventHandler passed.
-        """
-        return [command
-                for command, handler in self.brailleBindings.items()
-                if inputEventHandler == handler]
-
     def getFormatting(self):
         """Returns the formatting strings for this script."""
         return formatting.Formatting(self)
@@ -566,24 +533,6 @@ class Script:
         """
         pass
 
-    def visualAppearanceChanged(self, event, obj):
-        """Called when the visual appearance of an object changes.
-        This method should not be called for objects whose visual
-        appearance changes solely because of focus -- setLocusOfFocus
-        is used for that.  Instead, it is intended mostly for objects
-        whose notional 'value' has changed, such as a checkbox
-        changing state, a progress bar advancing, a slider moving,
-        text inserted, caret moved, etc.
-
-        The primary purpose of this method is to present the changed
-        information to the user.
-
-        Arguments:
-        - event: if not None, the Event that caused this to happen
-        - obj: the Accessible whose visual appearance changed.
-        """
-        pass
-
     def isActivatableEvent(self, event):
         """Returns True if the given event is one that should cause this
         script to become the active script.  This is only a hint to


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