From d31375b521f1bfa2dafc38ca6f7adece099a024b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Monteiro?= Date: Thu, 3 Nov 2022 11:16:38 +0000 Subject: [PATCH] math: remove unused matrix_print & print_matrix_floats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: António Monteiro Reviewed-by: Marek Olšák Part-of: --- src/mesa/math/m_matrix.c | 58 ---------------------------------------- src/mesa/math/m_matrix.h | 3 --- 2 files changed, 61 deletions(-) diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index fadea0fe225..75c83936d1b 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/m_matrix.c @@ -115,22 +115,6 @@ #define TEST_MAT_FLAGS(mat, a) \ ((MAT_FLAGS_GEOMETRY & (~(a)) & ((mat)->flags) ) == 0) - - -/** - * Names of the corresponding GLmatrixtype values. - */ -static const char *types[] = { - "MATRIX_GENERAL", - "MATRIX_IDENTITY", - "MATRIX_3D_NO_ROT", - "MATRIX_PERSPECTIVE", - "MATRIX_2D", - "MATRIX_2D_NO_ROT", - "MATRIX_3D" -}; - - /** * Identity matrix. */ @@ -271,48 +255,6 @@ _math_matrix_mul_floats( GLmatrix *dest, const GLfloat *m ) /*@}*/ - -/**********************************************************************/ -/** \name Matrix output */ -/*@{*/ - -/** - * Print a matrix array. - * - * \param m matrix array. - * - * Called by _math_matrix_print() to print a matrix or its inverse. - */ -static void print_matrix_floats( const GLfloat m[16] ) -{ - int i; - for (i=0;i<4;i++) { - _mesa_debug(NULL,"\t%f %f %f %f\n", m[i], m[4+i], m[8+i], m[12+i] ); - } -} - -/** - * Dumps the contents of a GLmatrix structure. - * - * \param m pointer to the GLmatrix structure. - */ -void -_math_matrix_print( const GLmatrix *m ) -{ - GLfloat prod[16]; - - _mesa_debug(NULL, "Matrix type: %s, flags: %x\n", types[m->type], m->flags); - print_matrix_floats(m->m); - _mesa_debug(NULL, "Inverse: \n"); - print_matrix_floats(m->inv); - matmul4(prod, m->m, m->inv); - _mesa_debug(NULL, "Mat * Inverse:\n"); - print_matrix_floats(prod); -} - -/*@}*/ - - /** * References an element of 4x4 matrix. * diff --git a/src/mesa/math/m_matrix.h b/src/mesa/math/m_matrix.h index 195558bbf32..905357374ca 100644 --- a/src/mesa/math/m_matrix.h +++ b/src/mesa/math/m_matrix.h @@ -146,9 +146,6 @@ _math_matrix_push_copy(GLmatrix *to, GLmatrix *from); extern void _math_matrix_analyse( GLmatrix *mat ); -extern void -_math_matrix_print( const GLmatrix *m ); - extern GLboolean _math_matrix_is_length_preserving( const GLmatrix *m );