[Bf-blender-cvs] [8e535ee9b43] master: Cleanup: Remove unused math min max utility

Hans Goudey noreply at git.blender.org
Tue Nov 22 19:41:24 CET 2022


Commit: 8e535ee9b437a34ae1a0374f4d08d70b6cbbcd08
Author: Hans Goudey
Date:   Tue Nov 22 12:31:31 2022 -0600
Branches: master
https://developer.blender.org/rB8e535ee9b437a34ae1a0374f4d08d70b6cbbcd08

Cleanup: Remove unused math min max utility

This has a friendlier multithreaded implementation in BLI_bounds.hh now.

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

M	source/blender/blenlib/BLI_math_vector.h
M	source/blender/blenlib/intern/math_vector.c

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

diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h
index 17fe25ec67b..1dd818a7974 100644
--- a/source/blender/blenlib/BLI_math_vector.h
+++ b/source/blender/blenlib/BLI_math_vector.h
@@ -670,11 +670,6 @@ void minmax_v4v4_v4(float min[4], float max[4], const float vec[4]);
 void minmax_v3v3_v3(float min[3], float max[3], const float vec[3]);
 void minmax_v2v2_v2(float min[2], float max[2], const float vec[2]);
 
-void minmax_v3v3_v3_array(float r_min[3],
-                          float r_max[3],
-                          const float (*vec_arr)[3],
-                          int var_arr_num);
-
 /** ensure \a v1 is \a dist from \a v2 */
 void dist_ensure_v3_v3fl(float v1[3], const float v2[3], float dist);
 void dist_ensure_v2_v2fl(float v1[2], const float v2[2], float dist);
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c
index f65a5acceae..2fce705a7ab 100644
--- a/source/blender/blenlib/intern/math_vector.c
+++ b/source/blender/blenlib/intern/math_vector.c
@@ -904,16 +904,6 @@ void minmax_v2v2_v2(float min[2], float max[2], const float vec[2])
   }
 }
 
-void minmax_v3v3_v3_array(float r_min[3],
-                          float r_max[3],
-                          const float (*vec_arr)[3],
-                          int var_arr_num)
-{
-  while (var_arr_num--) {
-    minmax_v3v3_v3(r_min, r_max, *vec_arr++);
-  }
-}
-
 void dist_ensure_v3_v3fl(float v1[3], const float v2[3], const float dist)
 {
   if (!equals_v3v3(v2, v1)) {



More information about the Bf-blender-cvs mailing list