From 0741fa373d0e8fc7888ae4b7d665c06bd4e57589 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 20 Jun 2024 11:10:37 -0400 Subject: [PATCH] Cleanup: Sculpt: Remove unused undo::push_node return value --- source/blender/editors/sculpt_paint/sculpt_intern.hh | 2 +- source/blender/editors/sculpt_paint/sculpt_undo.cc | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.hh b/source/blender/editors/sculpt_paint/sculpt_intern.hh index 021b4c4b546..f609d3941ed 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.hh +++ b/source/blender/editors/sculpt_paint/sculpt_intern.hh @@ -1654,7 +1654,7 @@ namespace blender::ed::sculpt_paint::undo { * * This is only possible when building an undo step, in between #push_begin and #push_end. */ -undo::Node *push_node(const Object &object, const PBVHNode *node, undo::Type type); +void push_node(const Object &object, const PBVHNode *node, undo::Type type); /** * Retrieve the undo data of a given type for the active undo step. For example, this is used to diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.cc b/source/blender/editors/sculpt_paint/sculpt_undo.cc index 331a575d431..25db2666307 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.cc +++ b/source/blender/editors/sculpt_paint/sculpt_undo.cc @@ -1572,7 +1572,7 @@ static Node *bmesh_push(const Object &object, const PBVHNode *node, Type type) return unode; } -Node *push_node(const Object &object, const PBVHNode *node, Type type) +void push_node(const Object &object, const PBVHNode *node, Type type) { SculptSession &ss = *object.sculpt; @@ -1634,8 +1634,6 @@ Node *push_node(const Object &object, const PBVHNode *node, Type type) break; } }); - - return unode; } static void save_active_attribute(Object &object, SculptAttrRef *attr)