cleanup unused parts

This commit is contained in:
iLLiCiTiT 2021-04-23 13:23:05 +02:00
parent 57ba2a547d
commit e4282babb5
2 changed files with 1 additions and 7 deletions

View file

@ -1,4 +1,4 @@
from Qt import QtWidgets, QtCore
from Qt import QtCore
IDENTIFIER_ROLE = QtCore.Qt.UserRole + 1

View file

@ -1,9 +1,5 @@
from Qt import QtWidgets, QtCore
from .constants import (
IDENTIFIER_ROLE,
COLUMNS_ROLE
)
from .delegates import NumberDelegate, StringDelegate
@ -92,8 +88,6 @@ class HierarchyView(QtWidgets.QTreeView):
super(HierarchyView, self).rowsInserted(parent_index, start, end)
for row in range(start, end + 1):
index = self._source_model.index(row, 0, parent_index)
columns = index.data(COLUMNS_ROLE) or []
for key, column in self._column_key_to_index.items():
if key not in self.persistent_columns:
continue