Remove redundant function in project tree

This commit is contained in:
Veronica Berglyd Olsen
2024-10-31 18:28:35 +01:00
parent 55d2605222
commit ccb5f8418b
2 changed files with 0 additions and 9 deletions
-5
View File
@@ -1390,11 +1390,6 @@ class GuiProjectTree(QTreeWidget):
return
def _getItemWordCount(self, tHandle: str) -> int:
"""Return the word count of a given item handle."""
tItem = self._getTreeItem(tHandle)
return int(tItem.data(self.C_DATA, self.D_WORDS)) if tItem else 0
def _getTreeItem(self, tHandle: str | None) -> QTreeWidgetItem | None:
"""Return the QTreeWidgetItem of a given item handle."""
return self._treeMap.get(tHandle, None) if tHandle else None