Cleanup: remove unused variables

This commit is contained in:
Campbell Barton
2024-12-14 23:17:48 +11:00
parent ebfbc7757b
commit c1951f6508
3 changed files with 1 additions and 6 deletions

View File

@@ -274,7 +274,6 @@ class AddModifierMenu(Operator):
@classmethod
def poll(cls, context):
# NOTE: This operator only exists to add a poll to the add modifier shortcut in the property editor.
object = context.object
space = context.space_data
return space and space.type == 'PROPERTIES' and space.context == 'MODIFIER'

View File

@@ -91,7 +91,6 @@ class MATERIAL_PT_gpencil_slots(GreasePencilMaterialsPanel, Panel):
@classmethod
def poll(cls, context):
ob = context.object
ma = context.material
return ma and ma.grease_pencil