[Bf-blender-cvs] [940704beb3f] temp-derived-node-tree-refactor: remove unused function

Jacques Lucke noreply at git.blender.org
Wed Mar 3 16:27:53 CET 2021


Commit: 940704beb3f07a16243bb9438f436f56d1e669c0
Author: Jacques Lucke
Date:   Wed Mar 3 16:27:46 2021 +0100
Branches: temp-derived-node-tree-refactor
https://developer.blender.org/rB940704beb3f07a16243bb9438f436f56d1e669c0

remove unused function

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

M	source/blender/nodes/NOD_XXX_node_tree.hh
M	source/blender/nodes/intern/xxx_node_tree.cc

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

diff --git a/source/blender/nodes/NOD_XXX_node_tree.hh b/source/blender/nodes/NOD_XXX_node_tree.hh
index a9d8d99c34f..e9f5dfa8685 100644
--- a/source/blender/nodes/NOD_XXX_node_tree.hh
+++ b/source/blender/nodes/NOD_XXX_node_tree.hh
@@ -97,8 +97,6 @@ struct XXXInputSocket {
 
   uint64_t hash() const;
 
-  XXXOutputSocket try_get_single_origin() const;
-
   XXXOutputSocket get_corresponding_group_node_output() const;
   XXXOutputSocket get_corresponding_group_input_socket() const;
 };
diff --git a/source/blender/nodes/intern/xxx_node_tree.cc b/source/blender/nodes/intern/xxx_node_tree.cc
index c5b946e63aa..796e805847d 100644
--- a/source/blender/nodes/intern/xxx_node_tree.cc
+++ b/source/blender/nodes/intern/xxx_node_tree.cc
@@ -57,22 +57,11 @@ XXXNodeTree::~XXXNodeTree()
 void XXXNodeTree::destruct_context_recursively(XXXNodeTreeContext *context)
 {
   for (XXXNodeTreeContext *child : context->children_.values()) {
-    destruct_context_recursively(child);
+    this->destruct_context_recursively(child);
   }
   context->~XXXNodeTreeContext();
 }
 
-XXXOutputSocket XXXInputSocket::try_get_single_origin() const
-{
-  BLI_assert(*this);
-  Span<const OutputSocketRef *> origins = socket->linked_sockets();
-  if (origins.size() != 1) {
-    return {};
-  }
-  const OutputSocketRef *origin = origins[0];
-  return {context, origin};
-}
-
 XXXOutputSocket XXXInputSocket::get_corresponding_group_node_output() const
 {
   BLI_assert(*this);



More information about the Bf-blender-cvs mailing list