Cleanup: unused variables
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 07:30:05 +0000 (17:30 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 07:32:21 +0000 (17:32 +1000)
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/properties_freestyle.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
release/scripts/startup/bl_ui/properties_render.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 7ea1eb4a89d32032f156cfa3ad1447fcfff208d6..64a68e41e13ad3884b646d8d2f7bcd06974710fd 100644 (file)
@@ -2266,7 +2266,6 @@ class WM_OT_app_template_install(Operator):
     def execute(self, context):
         import traceback
         import zipfile
     def execute(self, context):
         import traceback
         import zipfile
-        import shutil
         import os
 
         filepath = self.filepath
         import os
 
         filepath = self.filepath
index 7b656f9be81378bfa248fc6967c1ebad1cb61492..5260b7f371e427033f64ea4592e3388c706b6cb5 100644 (file)
@@ -153,7 +153,7 @@ class RENDERLAYER_PT_freestyle(RenderLayerFreestyleButtonsPanel, Panel):
             row = layout.row()
             row.label("Style modules:")
             row.operator("scene.freestyle_module_add", text="Add")
             row = layout.row()
             row.label("Style modules:")
             row.operator("scene.freestyle_module_add", text="Add")
-            for i, module in enumerate(freestyle.modules):
+            for module in freestyle.modules:
                 box = layout.box()
                 box.context_pointer_set("freestyle_module", module)
                 row = box.row(align=True)
                 box = layout.box()
                 box.context_pointer_set("freestyle_module", module)
                 row = box.row(align=True)
index 72d8a53dd69da25f2a802e86724f57a2cb9adf6c..373e3797f71bf0a818a075d9a6902a5e90c726f6 100644 (file)
@@ -545,7 +545,7 @@ class GPENCIL_MT_pie_settings_palette(Menu):
         gpd = context.gpencil_data
         gpl = context.active_gpencil_layer
         palcolor = context.active_gpencil_palettecolor
         gpd = context.gpencil_data
         gpl = context.active_gpencil_layer
         palcolor = context.active_gpencil_palettecolor
-        brush = context.active_gpencil_brush
+        brush = context.active_gpencil_brush
 
         is_editmode = bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
 
 
         is_editmode = bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
 
index bd5d926d4cdd2b8a3bd0831108508a320c597d9e..06e3afcf5be89989d792d64b1e26f5c3cce7a953 100644 (file)
@@ -392,7 +392,6 @@ class RENDER_PT_output(RenderButtonsPanel, Panel):
 
         rd = context.scene.render
         image_settings = rd.image_settings
 
         rd = context.scene.render
         image_settings = rd.image_settings
-        file_format = image_settings.file_format
 
         layout.prop(rd, "filepath", text="")
 
 
         layout.prop(rd, "filepath", text="")
 
index 41f1a64ca514340d9ca7cf152dc268c87065ad9e..f868404cd2f7fb6cff2766258ce5972009592d45 100644 (file)
@@ -1808,7 +1808,6 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel):
         layout = self.layout
 
         toolsettings = context.tool_settings
         layout = self.layout
 
         toolsettings = context.tool_settings
-        vpaint = toolsettings.vertex_paint
 
         col = layout.column()
 
 
         col = layout.column()