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

@@ -89,7 +89,7 @@ class EditExternally(Operator):
return {'FINISHED'}
def invoke(self, context, event):
def invoke(self, context, _event):
import os
sd = context.space_data
try:
@@ -121,7 +121,7 @@ class SaveDirty(Operator):
bl_label = "Save Dirty"
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
def execute(self, _context):
unique_paths = set()
for image in bpy.data.images:
if image.is_dirty:
@@ -227,7 +227,7 @@ class ProjectApply(Operator):
bl_label = "Project Apply"
bl_options = {'REGISTER'}
def execute(self, context):
def execute(self, _context):
image_name = ProjectEdit._proj_hack[0] # TODO, deal with this nicer
try: