Cleanup: unused args/vars/imports in modules
This commit is contained in:
@@ -133,7 +133,7 @@ class BPyOpsSubModOp:
|
||||
|
||||
is_dict = is_exec = is_undo = False
|
||||
|
||||
for i, arg in enumerate(args):
|
||||
for arg in args:
|
||||
if is_dict is False and isinstance(arg, dict):
|
||||
if is_exec is True or is_undo is True:
|
||||
raise ValueError("dict arg must come first")
|
||||
@@ -169,7 +169,7 @@ class BPyOpsSubModOp:
|
||||
self._func = func
|
||||
|
||||
def poll(self, *args):
|
||||
C_dict, C_exec, C_undo = BPyOpsSubModOp._parse_args(args)
|
||||
C_dict, C_exec, _C_undo = BPyOpsSubModOp._parse_args(args)
|
||||
return op_poll(self.idname_py(), C_dict, C_exec)
|
||||
|
||||
def idname(self):
|
||||
|
||||
Reference in New Issue
Block a user