math: remove unused matrix_has_rotation

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>
This commit is contained in:
António Monteiro 2022-11-03 11:05:56 +00:00 committed by Marge Bot
parent 55373642db
commit 18702a28bd
2 changed files with 0 additions and 21 deletions

View 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 )
{

View file

@ -146,9 +146,6 @@ _math_matrix_print( const GLmatrix *m );
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 );