Cleanup: mark unused arguments in UI scripts

Quiet's pylint W0613 warning, also remove some unused args.
This commit is contained in:
2019-04-19 07:32:24 +02:00
parent 9573bf432c
commit 5b0f0421ef
46 changed files with 399 additions and 410 deletions

View File

@@ -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.