@@ -50,7 +50,6 @@ def __init__(self, workspace, instance, func_list):
50
50
self .workspace = workspace
51
51
self .instance = instance
52
52
self ._config = Conf
53
- self ._data_cache = {}
54
53
55
54
def __len__ (self ):
56
55
if self ._func_list is not None :
@@ -69,7 +68,6 @@ def func_list(self) -> List["Function"]:
69
68
def func_list (self , v ):
70
69
self ._func_list = None
71
70
self ._raw_func_list = v
72
- self ._data_cache .clear ()
73
71
self .emit (SIGNAL ("layoutChanged()" ))
74
72
75
73
def filter (self , keyword ):
@@ -84,7 +82,6 @@ def filter(self, keyword):
84
82
if self ._func_match_keyword (func , keyword , extra_columns = extra_columns )
85
83
]
86
84
87
- self ._data_cache .clear ()
88
85
self .emit (SIGNAL ("layoutChanged()" ))
89
86
90
87
def rowCount (self , * args , ** kwargs ): # pylint:disable=unused-argument
@@ -117,16 +114,6 @@ def data(self, index, role):
117
114
return None
118
115
119
116
col = index .column ()
120
-
121
- key = (row , col , role )
122
- if key in self ._data_cache :
123
- value = self ._data_cache [key ]
124
- else :
125
- value = self ._data_uncached (row , col , role )
126
- self ._data_cache [key ] = value
127
- return value
128
-
129
- def _data_uncached (self , row , col , role ):
130
117
func = self .func_list [row ]
131
118
132
119
if role == Qt .DisplayRole :
0 commit comments