[orca] Remove redundant method



commit 473645af3a5e1359a1af69fe3f66ab2a390b6dff
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Mar 22 12:18:28 2018 -0400

    Remove redundant method

 src/orca/scripts/default.py |   25 +------------------------
 1 files changed, 1 insertions(+), 24 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 5f59bf3..77a943b 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2503,7 +2503,7 @@ class Script(script.Script):
                and not _settingsManager.getSetting('presentToolTips'):
                 return
             if event.detail1:
-                self.presentToolTip(obj)
+                self.presentObject(obj)
                 return
  
             if orca_state.locusOfFocus and keyString == "F1":
@@ -3156,29 +3156,6 @@ class Script(script.Script):
         speech.speak(word, voice)
         return True
 
-    def presentToolTip(self, obj):
-        """
-        Speaks the tooltip for the current object of interest.
-        """
-
-        # The tooltip is generally the accessible description. If
-        # the description is not set, present the text that is
-        # spoken when the object receives keyboard focus.
-        #
-        speechResult = brailleResult = None
-        text = ""
-        if obj.description:
-            speechResult = brailleResult = obj.description
-        else:
-            speechResult = self.whereAmI.getWhereAmI(obj, True)
-            if speechResult:
-                brailleResult = speechResult[0]
-
-        if speechResult:
-            speech.speak(speechResult)
-        if brailleResult:
-            self.displayBrailleMessage(brailleResult)
-
     def sayCharacter(self, obj):
         """Speak the character at the caret.
 


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