Remove unused CallSpec2 fields _globalid, _globalparam
This commit is contained in:
parent
e6ea9edffe
commit
8a4d5227e2
|
@ -789,8 +789,6 @@ class CallSpec2:
|
||||||
self.funcargs = {}
|
self.funcargs = {}
|
||||||
self._idlist = []
|
self._idlist = []
|
||||||
self.params = {}
|
self.params = {}
|
||||||
self._globalid = NOTSET
|
|
||||||
self._globalparam = NOTSET
|
|
||||||
self._arg2scopenum = {} # used for sorting parametrized resources
|
self._arg2scopenum = {} # used for sorting parametrized resources
|
||||||
self.marks = []
|
self.marks = []
|
||||||
self.indices = {}
|
self.indices = {}
|
||||||
|
@ -803,8 +801,6 @@ class CallSpec2:
|
||||||
cs.indices.update(self.indices)
|
cs.indices.update(self.indices)
|
||||||
cs._arg2scopenum.update(self._arg2scopenum)
|
cs._arg2scopenum.update(self._arg2scopenum)
|
||||||
cs._idlist = list(self._idlist)
|
cs._idlist = list(self._idlist)
|
||||||
cs._globalid = self._globalid
|
|
||||||
cs._globalparam = self._globalparam
|
|
||||||
return cs
|
return cs
|
||||||
|
|
||||||
def _checkargnotcontained(self, arg):
|
def _checkargnotcontained(self, arg):
|
||||||
|
@ -815,9 +811,7 @@ class CallSpec2:
|
||||||
try:
|
try:
|
||||||
return self.params[name]
|
return self.params[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
if self._globalparam is NOTSET:
|
|
||||||
raise ValueError(name)
|
raise ValueError(name)
|
||||||
return self._globalparam
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def id(self):
|
def id(self):
|
||||||
|
|
Loading…
Reference in New Issue