Cleanup: remove unused variables

This commit is contained in:
Campbell Barton
2024-09-13 10:41:30 +10:00
parent d9c941a464
commit 29214b20ec
2 changed files with 0 additions and 7 deletions

View File

@@ -3342,8 +3342,6 @@ static void push_undo_nodes(const Depsgraph &depsgraph,
const IndexMask &node_mask)
{
SculptSession &ss = *ob.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(ob);
bool need_coords = ss.cache->supports_gravity;
if (brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_DRAW_FACE_SETS) {

View File

@@ -1284,7 +1284,6 @@ static void do_bend_brush(const Depsgraph &depsgraph,
const float strength,
const eBrushDeformTarget deform_target)
{
SculptSession &ss = *object.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
switch (pbvh.type()) {
case bke::pbvh::Type::Mesh: {
@@ -1583,7 +1582,6 @@ static void do_slide_brush(const Depsgraph &depsgraph,
const float strength,
const eBrushDeformTarget deform_target)
{
SculptSession &ss = *object.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
switch (pbvh.type()) {
case bke::pbvh::Type::Mesh: {
@@ -1865,7 +1863,6 @@ static void do_inflate_brush(const Depsgraph &depsgraph,
const float strength,
const eBrushDeformTarget deform_target)
{
SculptSession &ss = *object.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
switch (pbvh.type()) {
case bke::pbvh::Type::Mesh: {
@@ -2436,7 +2433,6 @@ static void do_twist_brush(const Depsgraph &depsgraph,
const float strength,
const eBrushDeformTarget deform_target)
{
SculptSession &ss = *object.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
switch (pbvh.type()) {
case bke::pbvh::Type::Mesh: {
@@ -2841,7 +2837,6 @@ static void do_smooth_brush(const Depsgraph &depsgraph,
const float strength,
const eBrushDeformTarget deform_target)
{
SculptSession &ss = *object.sculpt;
bke::pbvh::Tree &pbvh = *bke::object::pbvh_get(object);
switch (pbvh.type()) {
case bke::pbvh::Type::Mesh: {