From 7ddc228c3979464c78dbce429cad7d584e1e06e1 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Wed, 29 Jun 2011 14:15:32 +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 f031adc..59fca57 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -265,18 +265,6 @@ class ImageModelItem(ModelItem): def addAnnotation(self, ann): self.appendChild(AnnotationModelItem(ann)) - def removeAnnotation(self, pos): - self.deleteChild(pos) - - def updateAnnotation(self, ann): - for child in self._children: - if child.type() == ann['type']: - if ('id' in child and 'id' in ann and child['id'] == ann['id']) or ('id' not in child and 'id' not in ann): - ann[None] = None - child.setData(ann, DataRole, 1) - return - raise Exception("No AnnotationModelItem found that could be updated!") - class ImageFileModelItem(FileModelItem, ImageModelItem): def __init__(self, fileinfo): annotations = fileinfo.get("annotations", [])