[Bf-blender-cvs] [65c5abc236a] blender2.8: Cleanup: remove dead code

Campbell Barton noreply at git.blender.org
Tue Sep 11 10:20:58 CEST 2018


Commit: 65c5abc236a3844117e92fdb4f1f492d311e4765
Author: Campbell Barton
Date:   Tue Sep 11 18:30:55 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB65c5abc236a3844117e92fdb4f1f492d311e4765

Cleanup: remove dead code

===================================================================

M	release/scripts/startup/bl_operators/clip.py
M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py
M	release/scripts/startup/bl_ui/properties_particle.py
M	release/scripts/startup/bl_ui/space_clip.py
M	release/scripts/startup/bl_ui/space_view3d.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index 065f4560ce9..d1bc8030d1e 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -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)
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 3671fcf3d68..7fa342233b0 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -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)
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index a27ee0e9414..d70a0967bdc 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -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
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index ae9a525fdf9..e0d07f05a72 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -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")
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 2a460cb484c..57c5761609c 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -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()
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 5e85819c494..05cd847b06e 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -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



More information about the Bf-blender-cvs mailing list