mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl/matrix: Remove more dead code
This commit is contained in:
parent
25c7d15040
commit
08015ce784
@ -98,18 +98,6 @@ static float identity[16] = {
|
|||||||
0.0, 0.0, 0.0, 1.0
|
0.0, 0.0, 0.0, 1.0
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* Multiply a matrix by an array of floats with known properties.
|
|
||||||
*
|
|
||||||
* @mat pointer to a CoglMatrix structure containing the left multiplication
|
|
||||||
* matrix, and that will receive the product result.
|
|
||||||
* @m right multiplication matrix array.
|
|
||||||
* @flags flags of the matrix \p m.
|
|
||||||
*
|
|
||||||
* Joins both flags and marks the type and inverse as dirty. Calls
|
|
||||||
* matrix_multiply3x4() if both matrices are 3D, or matrix_multiply4x4()
|
|
||||||
* otherwise.
|
|
||||||
*/
|
|
||||||
static void
|
static void
|
||||||
matrix_multiply_array_with_flags (CoglMatrix *result,
|
matrix_multiply_array_with_flags (CoglMatrix *result,
|
||||||
const float *array)
|
const float *array)
|
||||||
@ -143,22 +131,6 @@ cogl_matrix_multiply (CoglMatrix *result,
|
|||||||
_COGL_MATRIX_DEBUG_PRINT (result);
|
_COGL_MATRIX_DEBUG_PRINT (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Marks the matrix flags with general flag, and type and inverse dirty flags.
|
|
||||||
* Calls matrix_multiply4x4() for the multiplication.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
_cogl_matrix_multiply_array (CoglMatrix *result, const float *array)
|
|
||||||
{
|
|
||||||
result->flags |= (MAT_FLAG_GENERAL |
|
|
||||||
MAT_DIRTY_TYPE |
|
|
||||||
MAT_DIRTY_INVERSE |
|
|
||||||
MAT_DIRTY_FLAGS);
|
|
||||||
|
|
||||||
matrix_multiply4x4 ((float *)result, (float *)result, (float *)array);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_cogl_matrix_prefix_print (const char *prefix, const CoglMatrix *matrix)
|
_cogl_matrix_prefix_print (const char *prefix, const CoglMatrix *matrix)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user