From 60295cf36917ff597ab0aba3fb6a87669e1047a0 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 30 Nov 2021 18:57:59 +0100 Subject: [PATCH] Remove unused method --- src/fime/worklog.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fime/worklog.py b/src/fime/worklog.py index 2ece285..976b9bc 100644 --- a/src/fime/worklog.py +++ b/src/fime/worklog.py @@ -243,12 +243,6 @@ class WorklogDialog(QtWidgets.QDialog): self.tableWidget.setMinimumWidth(min(desired_width, self.tableWidget.maximumWidth())) self.adjustSize() - def center_dialog(self): - screen = QtGui.QGuiApplication.screenAt(self.pos()) - x = ((screen.size().width() - self.tableWidget.width()) // 2) + screen.geometry().left() - y = ((screen.size().height() - self.height()) // 2) + screen.geometry().top() - self.move(x, y) - def update_status_view(self, row): if self._statuses[row][0] is Status.PROGRESS: icon = ProgressIndicator(self)