mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-29 19:10:42 +01:00
erase old and useless methods
This commit is contained in:
1 parent
e615a6b9d4
commit
c014f0ef34
1 file changed
-14
@@ -236,17 +236,3 @@ class TableModel(PamhyrTableModel):
|
|||||||
self._undo.redo()
|
self._undo.redo()
|
||||||
self._setup_lst()
|
self._setup_lst()
|
||||||
self.layoutChanged.emit()
|
self.layoutChanged.emit()
|
||||||
|
|
||||||
def get(self, row):
|
|
||||||
if row < 0 or row >= len(self._lst):
|
|
||||||
return None
|
|
||||||
return self._lst[row]
|
|
||||||
|
|
||||||
def _global_row(self, row):
|
|
||||||
bc = self.get(row)
|
|
||||||
if bc is None:
|
|
||||||
return None
|
|
||||||
return next(
|
|
||||||
index for index, lcs in enumerate(self._lcs_list._lst)
|
|
||||||
if lcs is bc
|
|
||||||
)
|
|
||||||
Reference in new issue
Block a user