[Bf-blender-cvs] [2fbf9cb5518] master: Cleanup: remove unused function bc_find_bonename_in_path

Campbell Barton noreply at git.blender.org
Thu Dec 10 07:20:02 CET 2020


Commit: 2fbf9cb55182edd4b04c5e36651627bc3c0448ba
Author: Campbell Barton
Date:   Thu Dec 10 17:10:19 2020 +1100
Branches: master
https://developer.blender.org/rB2fbf9cb55182edd4b04c5e36651627bc3c0448ba

Cleanup: remove unused function bc_find_bonename_in_path

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

M	source/blender/io/collada/collada_utils.cpp
M	source/blender/io/collada/collada_utils.h

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

diff --git a/source/blender/io/collada/collada_utils.cpp b/source/blender/io/collada/collada_utils.cpp
index 25c10c717e2..ad1cc1035fb 100644
--- a/source/blender/io/collada/collada_utils.cpp
+++ b/source/blender/io/collada/collada_utils.cpp
@@ -1176,17 +1176,6 @@ static std::string bc_get_uvlayer_name(Mesh *me, int layer)
   return "";
 }
 
-std::string bc_find_bonename_in_path(std::string path, std::string probe)
-{
-  std::string result;
-  char *boneName = BLI_str_quoted_substrN(path.c_str(), probe.c_str());
-  if (boneName) {
-    result = std::string(boneName);
-    MEM_freeN(boneName);
-  }
-  return result;
-}
-
 static bNodeTree *prepare_material_nodetree(Material *ma)
 {
   if (ma->nodetree == nullptr) {
diff --git a/source/blender/io/collada/collada_utils.h b/source/blender/io/collada/collada_utils.h
index fa65d398954..d0a5d37d6d2 100644
--- a/source/blender/io/collada/collada_utils.h
+++ b/source/blender/io/collada/collada_utils.h
@@ -146,8 +146,6 @@ extern void bc_bubble_sort_by_Object_name(LinkNode *export_set);
 extern bool bc_is_root_bone(Bone *aBone, bool deform_bones_only);
 extern int bc_get_active_UVLayer(Object *ob);
 
-std::string bc_find_bonename_in_path(std::string path, std::string probe);
-
 inline std::string bc_string_after(const std::string &s, const std::string probe)
 {
   size_t i = s.rfind(probe);



More information about the Bf-blender-cvs mailing list