[orca] Delete an old, unused method
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Delete an old, unused method
- Date: Wed, 20 Jan 2016 21:52:19 +0000 (UTC)
commit 8ce47999f742f033ace4dd5eac4e28822a6596a2
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Jan 20 16:51:48 2016 -0500
Delete an old, unused method
src/orca/scripts/default.py | 30 ------------------------------
1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 2d11cfe..f2caf10 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -3593,36 +3593,6 @@ class Script(script.Script):
self.reviewCurrentItem(None)
self.targetCursorCell = self.getBrailleCursorCell()
- def speakMisspeltWord(self, allTokens, badWord):
- """Called by various spell checking routine to speak the misspelt word,
- plus the context that it is being used in.
-
- Arguments:
- - allTokens: a list of all the words.
- - badWord: the misspelt word.
- """
-
- # Create an utterance to speak consisting of the misspelt
- # word plus the context where it is used (upto five words
- # to either side of it).
- #
- for i in range(0, len(allTokens)):
- if allTokens[i].startswith(badWord):
- minIndex = i - 5
- if minIndex < 0:
- minIndex = 0
- maxIndex = i + 5
- if maxIndex > (len(allTokens) - 1):
- maxIndex = len(allTokens) - 1
-
- utterances = [messages.MISSPELLED_WORD % badWord]
- contextPhrase = " ".join(allTokens[minIndex:maxIndex+1])
- utterances.append(messages.MISSPELLED_WORD_CONTEXT % contextPhrase)
-
- # Turn the list of utterances into a string.
- text = " ".join(utterances)
- speech.speak(text)
-
def textLines(self, obj, offset=None):
"""Creates a generator that can be used to iterate over each line
of a text object, starting at the caret offset.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]