[orca] Get rid of orca_state.focusHistory: We no longer use it but we keep storing it.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Get rid of orca_state.focusHistory: We no longer use it but we keep storing it.
- Date: Tue, 14 Feb 2012 19:59:17 +0000 (UTC)
commit 77b23a7b1ffee5719b89d1b9af53ad0d93aba306
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 14 14:57:57 2012 -0500
Get rid of orca_state.focusHistory: We no longer use it but we keep storing it.
src/orca/orca.py | 4 ----
src/orca/orca_state.py | 4 ----
src/orca/settings.py | 5 -----
3 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 5f4b874..82ded9c 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -488,10 +488,6 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
# Either it's None or it's an invalid remote object.
oldLocusOfFocus = None
- orca_state.focusHistory = \
- orca_state.focusHistory[:settings.focusHistoryLength - 1]
- orca_state.focusHistory.insert(0, oldLocusOfFocus)
-
orca_state.locusOfFocus = obj
try:
app = orca_state.locusOfFocus.getApplication()
diff --git a/src/orca/orca_state.py b/src/orca/orca_state.py
index 5d6b9b5..2e3e1a4 100644
--- a/src/orca/orca_state.py
+++ b/src/orca/orca_state.py
@@ -32,10 +32,6 @@ __license__ = "LGPL"
# easily cause circular imports.
#
-# History of focused accessibles, helps caching.
-#
-focusHistory = []
-
# The Accessible that has visual focus.
#
locusOfFocus = None
diff --git a/src/orca/settings.py b/src/orca/settings.py
index 22b34c0..7a534d9 100644
--- a/src/orca/settings.py
+++ b/src/orca/settings.py
@@ -755,11 +755,6 @@ def overridePronunciations(script, pronunciations):
#
deprecatedMessages = False
-# Focus history length. We keep a reference to past focused accessibles to
-# maximize on caching.
-#
-focusHistoryLength = 5
-
# This is a list of events that Orca should immidiately drop and never look at.
#
ignoredEventsList = ['object:bounds-changed']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]