[mutter/gbsneto/graphene2: 29/45] cogl/matrix: Remove more dead code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene2: 29/45] cogl/matrix: Remove more dead code
- Date: Sat, 7 Sep 2019 11:19:40 +0000 (UTC)
commit 08015ce784c7d5305925d0c824df6e328b8a5ae9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Feb 27 18:59:37 2019 -0300
cogl/matrix: Remove more dead code
cogl/cogl/cogl-matrix.c | 28 ----------------------------
1 file changed, 28 deletions(-)
---
diff --git a/cogl/cogl/cogl-matrix.c b/cogl/cogl/cogl-matrix.c
index e1626f2c0..9953ab4ea 100644
--- a/cogl/cogl/cogl-matrix.c
+++ b/cogl/cogl/cogl-matrix.c
@@ -98,18 +98,6 @@ static float identity[16] = {
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
matrix_multiply_array_with_flags (CoglMatrix *result,
const float *array)
@@ -143,22 +131,6 @@ cogl_matrix_multiply (CoglMatrix *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
_cogl_matrix_prefix_print (const char *prefix, const CoglMatrix *matrix)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]