From 7d1f535e49d95c3b963a1b4cc01b36abba144241 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 26 Jan 2025 17:52:39 +0100 Subject: [PATCH] matrix: drop wlr_matrix_transpose() It's unused. --- include/types/wlr_matrix.h | 2 -- types/wlr_matrix.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/include/types/wlr_matrix.h b/include/types/wlr_matrix.h index e9af2f636..2e86e1e4d 100644 --- a/include/types/wlr_matrix.h +++ b/include/types/wlr_matrix.h @@ -12,8 +12,6 @@ void wlr_matrix_identity(float mat[static 9]); void wlr_matrix_multiply(float mat[static 9], const float a[static 9], const float b[static 9]); -void wlr_matrix_transpose(float mat[static 9], const float a[static 9]); - /** Writes a 2D translation matrix to mat of magnitude (x, y) */ void wlr_matrix_translate(float mat[static 9], float x, float y); diff --git a/types/wlr_matrix.c b/types/wlr_matrix.c index 8f8f73fa1..e2f758575 100644 --- a/types/wlr_matrix.c +++ b/types/wlr_matrix.c @@ -33,15 +33,6 @@ void wlr_matrix_multiply(float mat[static 9], const float a[static 9], memcpy(mat, product, sizeof(product)); } -void wlr_matrix_transpose(float mat[static 9], const float a[static 9]) { - float transposition[9] = { - a[0], a[3], a[6], - a[1], a[4], a[7], - a[2], a[5], a[8], - }; - memcpy(mat, transposition, sizeof(transposition)); -} - void wlr_matrix_translate(float mat[static 9], float x, float y) { float translate[9] = { 1.0f, 0.0f, x,