From 5b0f0421ef1d841d7389b504057dbf76998007c7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 19 Apr 2019 07:32:24 +0200 Subject: Cleanup: mark unused arguments in UI scripts Quiet's pylint W0613 warning, also remove some unused args. --- release/scripts/startup/bl_ui/properties_scene.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_scene.py') diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 5687caa8be0..df431000048 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -33,7 +33,7 @@ from .properties_physics_common import ( class SCENE_UL_keying_set_paths(UIList): - def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): + def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index): # assert(isinstance(item, bpy.types.KeyingSetPath) kspath = item icon = layout.enum_item_icon(kspath, "id_type", kspath.id_type) @@ -408,7 +408,7 @@ class SCENE_PT_rigid_body_cache(RigidBodySubPanel, Panel): scene = context.scene rbw = scene.rigidbody_world - point_cache_ui(self, context, rbw.point_cache, rbw.point_cache.is_baked is False and rbw.enabled, 'RIGID_BODY') + point_cache_ui(self, rbw.point_cache, rbw.point_cache.is_baked is False and rbw.enabled, 'RIGID_BODY') class SCENE_PT_rigid_body_field_weights(RigidBodySubPanel, Panel): @@ -420,7 +420,7 @@ class SCENE_PT_rigid_body_field_weights(RigidBodySubPanel, Panel): scene = context.scene rbw = scene.rigidbody_world - effector_weights_ui(self, context, rbw.effector_weights, 'RIGID_BODY') + effector_weights_ui(self, rbw.effector_weights, 'RIGID_BODY') class SCENE_PT_custom_props(SceneButtonsPanel, PropertyPanel, Panel): -- cgit v1.2.3