Cleanup: unused args/vars/imports in bl_operators

This commit is contained in:
2019-05-09 09:15:01 +10:00
parent bc39fa947a
commit fc37238b17
20 changed files with 67 additions and 72 deletions

View File

@@ -103,7 +103,7 @@ class SelectPattern(Operator):
wm = context.window_manager
return wm.invoke_props_popup(self, event)
def draw(self, context):
def draw(self, _context):
layout = self.layout
layout.prop(self, "pattern")
@@ -610,7 +610,6 @@ class MakeDupliFace(Operator):
rot = matrix.to_3x3() # also contains scale
return [(rot @ b) + trans for b in base_tri]
scene = context.scene
linked = defaultdict(list)
for obj in context.selected_objects:
if obj.type == 'MESH':
@@ -895,7 +894,7 @@ class LoadImageAsEmpty:
def poll(cls, context):
return context.mode == 'OBJECT'
def invoke(self, context, event):
def invoke(self, context, _event):
context.window_manager.fileselect_add(self)
return {'RUNNING_MODAL'}