[orca] Remove an old and unused debugging method.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove an old and unused debugging method.
- Date: Sat, 13 Apr 2013 19:32:09 +0000 (UTC)
commit e9dc73dd54c78a8dc06e1286b5b796191a607edf
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Apr 13 15:31:42 2013 -0400
Remove an old and unused debugging method.
src/orca/flat_review.py | 50 -------------------------------------------------
1 file changed, 50 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index 445092e..b37939d 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -1392,56 +1392,6 @@ class Context:
return lines
- def _dumpCurrentState(self):
- print("line=%d, zone=%d, word=%d, char=%d" \
- % (self.lineIndex,
- self.zoneIndex,
- self.wordIndex,
- self.zoneIndex))
-
- zone = self.lines[self.lineIndex].zones[self.zoneIndex]
- text = zone.accessible.queryText()
-
- if not text:
- print(" Not Accessibility_Text")
- return
-
- print(" getTextBeforeOffset: %d" % text.caretOffset)
- [string, startOffset, endOffset] = text.getTextBeforeOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_START)
- print(" WORD_START: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
- [string, startOffset, endOffset] = text.getTextBeforeOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_END)
- print(" WORD_END: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
-
- print(" getTextAtOffset: %d" % text.caretOffset)
- [string, startOffset, endOffset] = text.getTextAtOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_START)
- print(" WORD_START: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
- [string, startOffset, endOffset] = text.getTextAtOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_END)
- print(" WORD_END: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
-
- print(" getTextAfterOffset: %d" % text.caretOffset)
- [string, startOffset, endOffset] = text.getTextAfterOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_START)
- print(" WORD_START: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
- [string, startOffset, endOffset] = text.getTextAfterOffset(
- text.caretOffset,
- pyatspi.TEXT_BOUNDARY_WORD_END)
- print(" WORD_END: start=%d end=%d string='%s'" \
- % (startOffset, endOffset, string))
-
def setCurrent(self, lineIndex, zoneIndex, wordIndex, charIndex):
"""Sets the current character of interest.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]