[Bf-blender-cvs] [b3d5ef99718] functions: remove unused function

Jacques Lucke noreply at git.blender.org
Mon Aug 5 16:35:37 CEST 2019


Commit: b3d5ef997180a67a5c09a202fd82888294305056
Author: Jacques Lucke
Date:   Mon Aug 5 16:35:27 2019 +0200
Branches: functions
https://developer.blender.org/rBb3d5ef997180a67a5c09a202fd82888294305056

remove unused function

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

M	source/blender/blenlib/BLI_math.hpp

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

diff --git a/source/blender/blenlib/BLI_math.hpp b/source/blender/blenlib/BLI_math.hpp
index 6240fb4df00..aa226ea3538 100644
--- a/source/blender/blenlib/BLI_math.hpp
+++ b/source/blender/blenlib/BLI_math.hpp
@@ -151,13 +151,6 @@ struct float3 {
     return is_zero_v3(*this);
   }
 
-  void zero_small_values(float eps = 0.000001f)
-  {
-    x = (std::abs(x) < eps) ? 0.0f : x;
-    y = (std::abs(y) < eps) ? 0.0f : y;
-    z = (std::abs(z) < eps) ? 0.0f : z;
-  }
-
   friend float3 operator+(float3 a, float3 b)
   {
     return {a.x + b.x, a.y + b.y, a.z + b.z};



More information about the Bf-blender-cvs mailing list