[Bf-blender-cvs] [1c6e338d592] master: Cleanup: Make function static

Hans Goudey noreply at git.blender.org
Mon Jun 7 20:42:49 CEST 2021


Commit: 1c6e338d59285222276f31591532df69a9978362
Author: Hans Goudey
Date:   Mon Jun 7 13:42:41 2021 -0500
Branches: master
https://developer.blender.org/rB1c6e338d59285222276f31591532df69a9978362

Cleanup: Make function static

This was not used in any other file, and it's not likely to be used
elsewhere in the future anyway.

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

M	source/blender/blenkernel/BKE_displist.h
M	source/blender/blenkernel/intern/displist.cc

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

diff --git a/source/blender/blenkernel/BKE_displist.h b/source/blender/blenkernel/BKE_displist.h
index 3ac43cb75a0..ffa0b4d0091 100644
--- a/source/blender/blenkernel/BKE_displist.h
+++ b/source/blender/blenkernel/BKE_displist.h
@@ -84,13 +84,6 @@ void BKE_displist_count(const struct ListBase *lb, int *totvert, int *totface, i
 void BKE_displist_free(struct ListBase *lb);
 bool BKE_displist_has_faces(const struct ListBase *lb);
 
-void BKE_displist_make_surf(struct Depsgraph *depsgraph,
-                            const struct Scene *scene,
-                            struct Object *ob,
-                            struct ListBase *dispbase,
-                            struct Mesh **r_final,
-                            const bool for_render,
-                            const bool for_orco);
 void BKE_displist_make_curveTypes(struct Depsgraph *depsgraph,
                                   const struct Scene *scene,
                                   struct Object *ob,
diff --git a/source/blender/blenkernel/intern/displist.cc b/source/blender/blenkernel/intern/displist.cc
index 15aa614baad..7337f1d929f 100644
--- a/source/blender/blenkernel/intern/displist.cc
+++ b/source/blender/blenkernel/intern/displist.cc
@@ -1092,13 +1092,13 @@ static void displist_surf_indices(DispList *dl)
   }
 }
 
-void BKE_displist_make_surf(Depsgraph *depsgraph,
-                            const Scene *scene,
-                            Object *ob,
-                            ListBase *dispbase,
-                            Mesh **r_final,
-                            const bool for_render,
-                            const bool for_orco)
+static void displist_make_surf(Depsgraph *depsgraph,
+                               const Scene *scene,
+                               Object *ob,
+                               ListBase *dispbase,
+                               Mesh **r_final,
+                               const bool for_render,
+                               const bool for_orco)
 {
   ListBase nubase = {nullptr, nullptr};
   const Curve *cu = (const Curve *)ob->data;
@@ -1419,7 +1419,7 @@ static void do_makeDispListCurveTypes(Depsgraph *depsgraph,
   }
 
   if (ob->type == OB_SURF) {
-    BKE_displist_make_surf(depsgraph, scene, ob, dispbase, r_final, for_render, for_orco);
+    displist_make_surf(depsgraph, scene, ob, dispbase, r_final, for_render, for_orco);
   }
   else if (ELEM(ob->type, OB_CURVE, OB_FONT)) {
     ListBase dlbev;



More information about the Bf-blender-cvs mailing list