[orca] Remove yet another ancient, unused debug method
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove yet another ancient, unused debug method
- Date: Fri, 21 Dec 2012 19:14:57 +0000 (UTC)
commit 00253f13b3ef0b91b836532303d8d8e6175d4a1e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Dec 21 20:14:31 2012 +0100
Remove yet another ancient, unused debug method
src/orca/scripts/toolkits/Gecko/script.py | 35 -----------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index fe61199..4fcc481 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -2578,41 +2578,6 @@ class Script(default.Script):
return contents
- def getDocumentString(self):
- """Trivial debug utility to stringify the document contents
- showing on the screen."""
-
- contents = ""
- lastObj = None
- lastCharacterExtents = None
- [obj, characterOffset] = self.getCaretContext()
- while obj:
- if obj and obj.getState().contains(pyatspi.STATE_SHOWING):
- characterExtents = self.getExtents(
- obj, characterOffset, characterOffset + 1)
- if lastObj and (lastObj != obj):
- if obj.getRole() == pyatspi.ROLE_LIST_ITEM:
- contents += "\n"
- if lastObj.getRole() == pyatspi.ROLE_LINK:
- contents += ">"
- elif (lastCharacterExtents[1] < characterExtents[1]):
- contents += "\n"
- elif obj.getRole() == pyatspi.ROLE_TABLE_CELL:
- parent = obj.parent
- index = self.utilities.cellIndex(obj)
- if parent.queryTable().getColumnAtIndex(index) != 0:
- contents += " "
- elif obj.getRole() == pyatspi.ROLE_LINK:
- contents += "<"
- contents += self.getCharacterAtOffset(obj, characterOffset)
- lastObj = obj
- lastCharacterExtents = characterExtents
- [obj, characterOffset] = self.findNextCaretInOrder(obj,
- characterOffset)
- if lastObj and lastObj.getRole() == pyatspi.ROLE_LINK:
- contents += ">"
- return contents
-
####################################################################
# #
# Utility Methods #
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]