Cleanup: quiet unused arg warning
authorCampbell Barton <ideasman42@gmail.com>
Sat, 14 Sep 2019 19:26:15 +0000 (05:26 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 14 Sep 2019 19:26:15 +0000 (05:26 +1000)
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_console.py
release/scripts/startup/bl_ui/space_info.py
release/scripts/startup/bl_ui/space_sequencer.py
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
release/scripts/startup/bl_ui/space_view3d.py

index 6bd2dea3e7b25f8a662fc44ac4d29aa34c4b87e8..e58d5117bc3e9da55c7d909cef807b751b15f786 100644 (file)
@@ -1221,7 +1221,7 @@ class CLIP_PT_tools_grease_pencil_draw(AnnotationDrawingToolsPanel, Panel):
 class CLIP_MT_view_zoom(Menu):
     bl_label = "Fractional Zoom"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         ratios = ((1, 8), (1, 4), (1, 2), (1, 1), (2, 1), (4, 1), (8, 1))
index a56928a0589b533e390d3f6e4d0dc83f3d3ba79b..54a72cf59d0ff79569e10aa0cfbe3c0196e98cd9 100644 (file)
@@ -129,7 +129,7 @@ class CONSOLE_MT_console(Menu):
 class CONSOLE_MT_context_menu(Menu):
     bl_label = "Console Context Menu"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         layout.operator("console.clear")
index b7b0326106ea48cec8b3ad03c955ceb720558b0a..82ed701aa4cb82dab45935a444c97258bd96fd28 100644 (file)
@@ -34,7 +34,7 @@ class INFO_MT_editor_menus(Menu):
     bl_idname = "INFO_MT_editor_menus"
     bl_label = ""
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
         layout.menu("INFO_MT_view")
         layout.menu("INFO_MT_info")
@@ -43,7 +43,7 @@ class INFO_MT_editor_menus(Menu):
 class INFO_MT_view(Menu):
     bl_label = "View"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         layout.menu("INFO_MT_area")
@@ -52,7 +52,7 @@ class INFO_MT_view(Menu):
 class INFO_MT_info(Menu):
     bl_label = "Info"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         layout.operator("info.select_all", text="Select All").action = 'SELECT'
@@ -107,7 +107,7 @@ class INFO_MT_area(Menu):
 class INFO_MT_context_menu(Menu):
     bl_label = "Info Context Menu"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         layout.operator("info.report_copy", text="Copy")
index e6ab9d1e9dea91f21bd0ceb12d7226780f05dfc6..381808e8479e949413cffd6bb2ec8ed72aa94f58 100644 (file)
@@ -187,7 +187,7 @@ class SEQUENCER_MT_range(Menu):
 class SEQUENCER_MT_preview_zoom(Menu):
     bl_label = "Fractional Zoom"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
         layout.operator_context = 'INVOKE_REGION_PREVIEW'
 
index de05a35721159f1094ac7df7d33026edae2c6d8c..a232146c82d45a10a94a30dd056c8c733a954496 100644 (file)
@@ -490,7 +490,7 @@ class _defs_edit_mesh:
 
     @ToolDef.from_fn
     def poly_build():
-        def draw_settings(context, layout, tool):
+        def draw_settings(_context, layout, tool):
             props = tool.operator_properties("mesh.polybuild_face_at_cursor_move")
             props_macro = props.MESH_OT_polybuild_face_at_cursor
             layout.prop(props_macro, "create_quads")
@@ -987,7 +987,7 @@ class _defs_sculpt:
 
     @ToolDef.from_fn
     def mesh_filter():
-        def draw_settings(context, layout, tool):
+        def draw_settings(_context, layout, tool):
             props = tool.operator_properties("sculpt.mesh_filter")
             layout.prop(props, "type", expand=False)
             layout.prop(props, "strength")
index acb42e0545b370e52f872704fc1bcccaf1971c84..6f4d59e3e0511fdd2bf6bd8830a606a2fc309369 100644 (file)
@@ -2810,7 +2810,7 @@ class VIEW3D_MT_paint_weight(Menu):
 class VIEW3D_MT_sculpt(Menu):
     bl_label = "Sculpt"
 
-    def draw(self, context):
+    def draw(self, _context):
         layout = self.layout
 
         props = layout.operator("paint.hide_show", text="Show All")