Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
this function would not work in any case, referencing attributes that
have long been removed from that class.
Also `adjustRectForImage` is never used.
  • Loading branch information
k-dominik committed May 8, 2024
1 parent 54f2756 commit a51c4c1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ilastik/widgets/featureTableWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,22 +350,6 @@ def paint(self, painter, option, index):
painter.fillRect(option.rect.adjusted(5, 5, -5, -5), QColor(0, 250, 154))
painter.drawPixmap(option.rect, self.getPixmap(self.Role.CHECKED, option.rect.size()))

def adjustRectForImage(self, option):
if self.itemWidth > self.itemHeight:
return option.rect.adjusted(
old_div((self.itemWidth - self.itemHeight), 2) + 5,
5,
-(old_div((self.itemWidth - self.itemHeight), 2)) - 5,
-5,
)
else:
return option.rect.adjusted(
5,
old_div((self.itemHeight - self.itemWidth), 2) + 5,
-(old_div((self.itemHeight - self.itemWidth), 2)) - 5,
-5,
)


# ==============================================================================
# FeatureTableWidget2d
Expand Down

0 comments on commit a51c4c1

Please sign in to comment.