math: remove unused matrix_has_rotation
authorAntónio Monteiro <antonio.fmr.monteiro@gmail.com>
Thu, 3 Nov 2022 11:05:56 +0000 (11:05 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Nov 2022 23:20:02 +0000 (23:20 +0000)
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19428>

src/mesa/math/m_matrix.c
src/mesa/math/m_matrix.h

index 25a0914..9df2692 100644 (file)
@@ -1270,24 +1270,6 @@ _math_matrix_is_length_preserving( const GLmatrix *m )
    return TEST_MAT_FLAGS( m, MAT_FLAGS_LENGTH_PRESERVING);
 }
 
-
-/**
- * Test if the given matrix does any rotation.
- * (or perhaps if the upper-left 3x3 is non-identity)
- */
-GLboolean
-_math_matrix_has_rotation( const GLmatrix *m )
-{
-   if (m->flags & (MAT_FLAG_GENERAL |
-                   MAT_FLAG_ROTATION |
-                   MAT_FLAG_GENERAL_3D |
-                   MAT_FLAG_PERSPECTIVE))
-      return GL_TRUE;
-   else
-      return GL_FALSE;
-}
-
-
 GLboolean
 _math_matrix_is_general_scale( const GLmatrix *m )
 {
index 7aa8610..499e982 100644 (file)
@@ -147,9 +147,6 @@ extern GLboolean
 _math_matrix_is_length_preserving( const GLmatrix *m );
 
 extern GLboolean
-_math_matrix_has_rotation( const GLmatrix *m );
-
-extern GLboolean
 _math_matrix_is_general_scale( const GLmatrix *m );
 
 extern GLboolean