Cleanup: unused args/vars/imports in modules

This commit is contained in:
2019-05-09 13:11:36 +10:00
parent fc37238b17
commit 7465a5db3b
14 changed files with 30 additions and 33 deletions

View File

@@ -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):