[orca] Remove no-longer-needed call to getRole()



commit 9d50a073b69ac43ee3b3c2d3e8613380043b68e3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Oct 15 17:09:55 2018 +0200

    Remove no-longer-needed call to getRole()

 src/orca/scripts/default.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index b4a90598f..bde29baac 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2302,11 +2302,10 @@ class Script(script.Script):
     def onExpandedChanged(self, event):
         """Callback for object:state-changed:expanded accessibility events."""
 
-        obj = event.source
-        role = obj.getRole()
         if not self.utilities.isPresentableExpandedChangedEvent(event):
             return
 
+        obj = event.source
         oldObj, oldState = self.pointOfReference.get('expandedChange', (None, 0))
         if hash(oldObj) == hash(obj) and oldState == event.detail1:
             return


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