Cleanup: mark unused arguments in UI scripts
Quiet's pylint W0613 warning, also remove some unused args.
This commit is contained in:
@@ -139,7 +139,7 @@ class PHYSICS_PT_rigid_body_constraint_limits(PHYSICS_PT_rigidbody_constraint_pa
|
||||
return (ob and rbc and (rbc.type in {'GENERIC', 'GENERIC_SPRING', 'HINGE', 'SLIDER', 'PISTON'})
|
||||
and context.engine in cls.COMPAT_ENGINES)
|
||||
|
||||
def draw(self, context):
|
||||
def draw(self, _context):
|
||||
return # do nothing.
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ class PHYSICS_PT_rigid_body_constraint_motor(PHYSICS_PT_rigidbody_constraint_pan
|
||||
return (ob and rbc and rbc.type == 'MOTOR'
|
||||
and context.engine in cls.COMPAT_ENGINES)
|
||||
|
||||
def draw(self, context):
|
||||
def draw(self, _context):
|
||||
return # do nothing.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user