Cleanup: remove dead code
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 08:30:55 +0000 (18:30 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 08:30:55 +0000 (18:30 +1000)
release/scripts/startup/bl_operators/clip.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
release/scripts/startup/bl_ui/properties_particle.py
release/scripts/startup/bl_ui/space_clip.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 065f4560ce9f19d384d5b8b7950b9016878a6932..d1bc8030d1e930c6fa65e25cafabb6a06715d2bc 100644 (file)
@@ -970,7 +970,6 @@ class CLIP_OT_setup_tracking_scene(Operator):
 
     def execute(self, context):
         scene = context.scene
-        # current_active_layer = scene.active_layer
 
         self._setupScene(context)
         self._setupWorld(context)
index 3671fcf3d68eda8bc2af2350c97292defd9b8671..7fa342233b0b8b5809e034caa8974499101a0013 100644 (file)
@@ -782,7 +782,6 @@ class GreasePencilToolsPanel:
     def draw(self, context):
         layout = self.layout
 
-        # gpd_owner = context.gpencil_data_owner
         gpd = context.gpencil_data
 
         layout.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)
index a27ee0e9414a5bcad0f6baeff955fa0b59af1dd8..d70a0967bdc1cbe35a0d8898d03cbb16b8071d81 100644 (file)
@@ -705,7 +705,6 @@ class PARTICLE_PT_physics_fluid_advanced(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         fluid = part.fluid
 
@@ -755,7 +754,6 @@ class PARTICLE_PT_physics_fluid_springs(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         fluid = part.fluid
 
@@ -780,7 +778,6 @@ class PARTICLE_PT_physics_fluid_springs_viscoelastic(ParticleButtonsPanel, Panel
             return False
 
     def draw_header(self, context):
-        # psys = context.particle_system
         part = particle_get_settings(context)
         fluid = part.fluid
 
@@ -790,7 +787,6 @@ class PARTICLE_PT_physics_fluid_springs_viscoelastic(ParticleButtonsPanel, Panel
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         fluid = part.fluid
 
@@ -824,7 +820,6 @@ class PARTICLE_PT_physics_fluid_springs_advanced(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         fluid = part.fluid
 
@@ -848,7 +843,6 @@ class PARTICLE_PT_physics_boids_movement(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         boids = part.boids
 
@@ -902,7 +896,6 @@ class PARTICLE_PT_physics_boids_battle(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         boids = part.boids
 
@@ -930,7 +923,6 @@ class PARTICLE_PT_physics_boids_misc(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
         boids = part.boids
 
@@ -1248,7 +1240,6 @@ class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1274,7 +1265,6 @@ class PARTICLE_PT_render_line(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1301,7 +1291,6 @@ class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1366,7 +1355,6 @@ class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1393,7 +1381,6 @@ class PARTICLE_PT_render_collection(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1432,7 +1419,6 @@ class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1498,7 +1484,6 @@ class PARTICLE_PT_render_billboards_tilt(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1567,7 +1552,6 @@ class PARTICLE_PT_render_trails(ParticleButtonsPanel, Panel):
         layout = self.layout
         layout.use_property_split = True
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         col = layout.column()
@@ -1712,7 +1696,6 @@ class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         layout.use_property_split = True
@@ -1737,7 +1720,6 @@ class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         layout.use_property_split = True
@@ -1779,7 +1761,6 @@ class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         layout.use_property_split = True
@@ -1821,7 +1802,6 @@ class PARTICLE_PT_children_kink(ParticleButtonsPanel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        # psys = context.particle_system
         part = particle_get_settings(context)
 
         layout.use_property_split = True
index ae9a525fdf9b95cfac2750caa6038abdd4d3de72..e0d07f05a72124894f60664e1707df4dee86f924 100644 (file)
@@ -263,9 +263,6 @@ class CLIP_PT_tools_marker(CLIP_PT_tracking_panel, Panel):
     def draw(self, context):
         layout = self.layout
 
-        # sc = context.space_data
-        # clip = sc.clip
-
         col = layout.column(align=True)
         row = col.row(align=True)
         row.operator("clip.add_marker_at_click", text="Add")
index 2a460cb484c801168e4920ec7add278dddd6700b..57c5761609c1f25ac3c9fc14affd07fd08a65883 100644 (file)
@@ -50,9 +50,6 @@ class VIEW3D_HT_header(Header):
 
         # Contains buttons like Mode, Pivot, Layer, Mesh Select Mode...
         if obj:
-            # Set above:
-            # object_mode = obj.mode
-
             # Particle edit
             if object_mode == 'PARTICLE_EDIT':
                 row = layout.row()
index 5e85819c4945588572c1822d1b41dedbe0ba72fb..05cd847b06e44d968953c71605e404942d4fcdff 100644 (file)
@@ -553,7 +553,6 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
         layout = self.layout
 
         settings = context.tool_settings.image_paint
-        # brush = settings.brush
 
         ob = context.active_object
         col = layout.column()
@@ -969,7 +968,6 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
 
     def draw(self, context):
         layout = self.layout
-        # scene = context.scene
 
         toolsettings = context.tool_settings
         sculpt = toolsettings.sculpt