From 09abec135eff8bb7d27293c2f21ada2375a0164b Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Tue, 14 Jun 2011 13:56:05 +0200 Subject: [PATCH] Remove unneeded functions --- sloth/annotations/model.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sloth/annotations/model.py b/sloth/annotations/model.py index d554377..66570f7 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -76,18 +76,6 @@ class ModelItem: assert self._pindex return QModelIndex(self._pindex[column]) - def parentIndex(self): - if self.parent_ is not None: - return self.parent_.index() - else: - return QModelIndex() - - def getNDescendants(self): - n = 1 - for item in self.children_: - n += item.getNDescendants() - return n - def appendChild(self, item): assert isinstance(item, ModelItem) assert item.model() is None