[Bf-blender-cvs] [4d08c352c30] functions-experimental-refactor: cleanup

Jacques Lucke noreply at git.blender.org
Wed Oct 16 13:17:40 CEST 2019


Commit: 4d08c352c30f0ae97d1660e3a7f4788323a482b3
Author: Jacques Lucke
Date:   Wed Oct 16 11:39:16 2019 +0200
Branches: functions-experimental-refactor
https://developer.blender.org/rB4d08c352c30f0ae97d1660e3a7f4788323a482b3

cleanup

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

M	source/blender/blenkernel/BKE_virtual_node_tree_cxx.h

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

diff --git a/source/blender/blenkernel/BKE_virtual_node_tree_cxx.h b/source/blender/blenkernel/BKE_virtual_node_tree_cxx.h
index 02b3069822c..7c98b77041f 100644
--- a/source/blender/blenkernel/BKE_virtual_node_tree_cxx.h
+++ b/source/blender/blenkernel/BKE_virtual_node_tree_cxx.h
@@ -104,22 +104,6 @@ class VirtualNodeTree {
     return m_socket_counter;
   }
 
-  template<typename T>
-  void map_socket_idnames(const StringMap<T> &map,
-                          const T &default_value,
-                          MutableArrayRef<T> r_result) const
-  {
-    BLI_assert(r_result.size() == this->socket_count());
-    for (const VirtualNode *vnode : m_nodes) {
-      for (const VirtualSocket *vsocket : vnode->m_inputs) {
-        r_result[vsocket->m_id] = map.lookup_default(vsocket->idname(), default_value);
-      }
-      for (const VirtualSocket *vsocket : vnode->m_outputs) {
-        r_result[vsocket->m_id] = map.lookup_default(vsocket->idname(), default_value);
-      }
-    }
-  }
-
  private:
   void initialize_direct_links();
   void initialize_links();



More information about the Bf-blender-cvs mailing list