diff --git a/angrmanagement/ui/widgets/qfunction_table.py b/angrmanagement/ui/widgets/qfunction_table.py index b66fd10b7..c6cdb84a8 100644 --- a/angrmanagement/ui/widgets/qfunction_table.py +++ b/angrmanagement/ui/widgets/qfunction_table.py @@ -53,7 +53,6 @@ def __init__(self, workspace, instance, func_list): self.workspace = workspace self.instance = instance self._config = Conf - self._data_cache = {} def __len__(self): if self._func_list is not None: @@ -72,7 +71,6 @@ def func_list(self) -> List["Function"]: def func_list(self, v): self._func_list = None self._raw_func_list = v - self._data_cache.clear() self.emit(SIGNAL("layoutChanged()")) def filter(self, keyword): @@ -87,7 +85,6 @@ def filter(self, keyword): if self._func_match_keyword(func, keyword, extra_columns=extra_columns) ] - self._data_cache.clear() self.emit(SIGNAL("layoutChanged()")) def rowCount(self, *args, **kwargs): # pylint:disable=unused-argument @@ -120,16 +117,6 @@ def data(self, index, role): return None col = index.column() - - key = (row, col, role) - if key in self._data_cache: - value = self._data_cache[key] - else: - value = self._data_uncached(row, col, role) - self._data_cache[key] = value - return value - - def _data_uncached(self, row, col, role): func = self.func_list[row] if role == Qt.DisplayRole: