Cleanup: remove unused variables, imports

This commit is contained in:
Campbell Barton 2024-09-27 23:37:18 +10:00
parent fd59591fdc
commit a9dee36974
11 changed files with 0 additions and 20 deletions

View file

@ -213,7 +213,6 @@ class VIEW3D_PT_vr_viewport_feedback(Panel):
def draw(self, context):
layout = self.layout
scene = context.scene
view3d = context.space_data
session_settings = context.window_manager.xr_session_settings

View file

@ -1138,7 +1138,6 @@ class IMAGE_OT_convert_to_mesh_plane(MaterialProperties_MixIn, TextureProperties
return context.window_manager.invoke_props_dialog(self)
def execute(self, context):
scene = context.scene
selected_objects = [ob for ob in context.selected_objects]
converted = 0

View file

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.app.translations import pgettext_tip as tip_

View file

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.types import (
Panel,
)

View file

@ -198,8 +198,6 @@ class DATA_PT_lightprobe_bake(DataButtonsPanel, Panel):
layout.use_property_split = True
layout.use_property_decorate = False
probe = context.lightprobe
col = layout.column()
row = col.row(align=True)
row.operator("object.lightprobe_cache_bake").subset = 'ACTIVE'

View file

@ -1182,7 +1182,6 @@ def brush_settings_advanced(layout, context, brush, popover=False):
layout.separator()
elif mode == 'SCULPT_GREASE_PENCIL':
tool = brush.gpencil_sculpt_tool
gp_settings = brush.gpencil_settings
col = layout.column(heading="Affect", align=True)

View file

@ -176,9 +176,6 @@ class RENDER_PT_color_management_white_balance(RenderButtonsPanel, Panel):
def draw_header_preset(self, context):
layout = self.layout
scene = context.scene
view = scene.view_settings
RENDER_PT_color_management_white_balance_presets.draw_panel_header(layout)
eye = layout.operator("ui.eyedropper_color", text="", icon='EYEDROPPER')

View file

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.types import Panel, Header, Menu, UIList
from bpy.app.translations import (
pgettext_iface as iface_,

View file

@ -2497,7 +2497,6 @@ class _defs_gpencil_paint:
row = layout.row(align=True)
tool_settings = context.scene.tool_settings
settings = tool_settings.gpencil_paint
BrushAssetShelf.draw_popup_selector(row, context, brush)

View file

@ -426,7 +426,6 @@ class _draw_tool_settings_context_mode:
gp_settings = brush.gpencil_settings
row = layout.row(align=True)
settings = tool_settings.gpencil_paint
BrushAssetShelf.draw_popup_selector(row, context, brush)
@ -3722,10 +3721,8 @@ class VIEW3D_MT_greasepencil_vertex_group(Menu):
layout = self.layout
layout.operator_context = 'EXEC_AREA'
ob = context.active_object
layout.operator("object.vertex_group_add", text="Add New Group")
ob = context.active_object
class VIEW3D_MT_paint_weight_lock(Menu):
@ -8124,7 +8121,6 @@ class VIEW3D_PT_gpencil_origin(Panel):
def draw(self, context):
layout = self.layout
tool_settings = context.tool_settings
gpd = context.gpencil_data
layout.label(text="Stroke Placement")

View file

@ -2385,9 +2385,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_eraser(View3DPanel, Panel):
@classmethod
def poll(cls, context):
tool_settings = context.tool_settings
settings = tool_settings.gpencil_paint
if context.region.type == 'TOOL_HEADER':
return False
@ -2525,7 +2522,6 @@ class VIEW3D_PT_tools_grease_pencil_v3_brush_advanced(View3DPanel, Panel):
layout.use_property_decorate = False
tool_settings = context.scene.tool_settings
ups = tool_settings.unified_paint_settings
gpencil_paint = tool_settings.gpencil_paint
brush = gpencil_paint.brush
gp_settings = brush.gpencil_settings