From 18702a28bd4ef2dc646f012f8757717fef9b4611 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ant=C3=B3nio=20Monteiro?= Date: Thu, 3 Nov 2022 11:05:56 +0000 Subject: [PATCH] math: remove unused matrix_has_rotation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: António Monteiro Reviewed-by: Marek Olšák Part-of: --- src/mesa/math/m_matrix.c | 18 ------------------ src/mesa/math/m_matrix.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 25a0914..9df2692 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -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 ) { diff --git a/src/mesa/math/m_matrix.h b/src/mesa/math/m_matrix.h index 7aa8610..499e982 100644 --- a/src/mesa/math/m_matrix.h +++ b/src/mesa/math/m_matrix.h @@ -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 -- 2.7.4