]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/math/aabb.h
Embrace lambdas
[xonotic/netradiant.git] / libs / math / aabb.h
index 29e3a38ebd13545565d9ba5dae4cc9913147379c..917850f5b5b3d6e2d326e3b5e1b1e114aced4d7c 100644 (file)
@@ -112,17 +112,6 @@ inline void aabb_extend_by_point_safe( AABB& aabb, const Vector3& point ){
        }
 }
 
-class AABBExtendByPoint
-{
-AABB& m_aabb;
-public:
-AABBExtendByPoint( AABB& aabb ) : m_aabb( aabb ){
-}
-void operator()( const Vector3& point ) const {
-       aabb_extend_by_point_safe( m_aabb, point );
-}
-};
-
 inline void aabb_extend_by_aabb( AABB& aabb, const AABB& other ){
        AABBExtend< IntegralConstant<0> >::apply( aabb, other );
        AABBExtend< IntegralConstant<1> >::apply( aabb, other );