Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-12-14 21:16:28 +0300
committerHans Goudey <h.goudey@me.com>2021-12-14 21:16:28 +0300
commit44232a2ce6d8762f10366f6bb660a37ce3e1acbd (patch)
tree7282806977214a0fc93c8740c0a4f0bf025949bb /source/blender/editors/space_node/node_draw.cc
parentd56bbfea7b420d7d746e7541073a87517ffffaa9 (diff)
Cleanup: Remove unused arguments
Diffstat (limited to 'source/blender/editors/space_node/node_draw.cc')
-rw-r--r--source/blender/editors/space_node/node_draw.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index ce9a6e3c5e0..d68f16f6197 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -975,7 +975,6 @@ static void create_inspection_string_for_geometry(const geo_log::GeometryValueLo
}
static std::optional<std::string> create_socket_inspection_string(bContext *C,
- bNodeTree &UNUSED(ntree),
bNode &node,
bNodeSocket &socket)
{
@@ -1072,7 +1071,7 @@ static void node_socket_draw_nested(const bContext &C,
[](bContext *C, void *argN, const char *UNUSED(tip)) {
SocketTooltipData *data = (SocketTooltipData *)argN;
std::optional<std::string> socket_inspection_str = create_socket_inspection_string(
- C, *data->ntree, *data->node, *data->socket);
+ C, *data->node, *data->socket);
std::stringstream output;
if (data->socket->declaration != nullptr) {
@@ -2328,9 +2327,8 @@ static void count_multi_input_socket_links(bNodeTree &ntree, SpaceNode &snode)
/* XXX Does a bounding box update by iterating over all children.
* Not ideal to do this in every draw call, but doing as transform callback doesn't work,
- * since the child node totr rects are not updated properly at that point.
- */
-static void frame_node_prepare_for_draw(bNodeTree &ntree, bNode &node, Span<bNode *> nodes)
+ * since the child node totr rects are not updated properly at that point. */
+static void frame_node_prepare_for_draw(bNode &node, Span<bNode *> nodes)
{
const float margin = 1.5f * U.widget_unit;
NodeFrame *data = (NodeFrame *)node.storage;
@@ -2416,7 +2414,7 @@ static void node_update_nodetree(const bContext &C,
bNode &node = *nodes[i];
uiBlock &block = *blocks[i];
if (node.type == NODE_FRAME) {
- frame_node_prepare_for_draw(ntree, node, nodes);
+ frame_node_prepare_for_draw(node, nodes);
}
else if (node.type == NODE_REROUTE) {
reroute_node_prepare_for_draw(node);