diff --git a/include/wlr/types/wlr_matrix.h b/include/wlr/types/wlr_matrix.h index 7ddfd9d7d..1a8b5be53 100644 --- a/include/wlr/types/wlr_matrix.h +++ b/include/wlr/types/wlr_matrix.h @@ -43,11 +43,6 @@ void wlr_matrix_rotate(float mat[static 9], float rad); void wlr_matrix_transform(float mat[static 9], enum wl_output_transform transform); -/** Writes a transformation matrix which applies the inverse of - * transform to mat, such that transform × inverse = identity */ -void wlr_matrix_transform_inv(float mat[static 9], - enum wl_output_transform transform); - /** Writes a 2D orthographic projection matrix to mat of (width, height) with a * specified wl_output_transform. * diff --git a/types/wlr_matrix.c b/types/wlr_matrix.c index 2be9ee1e0..a1b2b31a1 100644 --- a/types/wlr_matrix.c +++ b/types/wlr_matrix.c @@ -117,33 +117,6 @@ void wlr_matrix_transform(float mat[static 9], wlr_matrix_multiply(mat, mat, transforms[transform]); } -void wlr_matrix_transform_inv(float mat[static 9], - enum wl_output_transform transform) { - enum wl_output_transform inv; - - switch (transform) { - case WL_OUTPUT_TRANSFORM_90: - inv = WL_OUTPUT_TRANSFORM_270; - break; - case WL_OUTPUT_TRANSFORM_180: - inv = WL_OUTPUT_TRANSFORM_180; - break; - case WL_OUTPUT_TRANSFORM_270: - inv = WL_OUTPUT_TRANSFORM_90; - break; - case WL_OUTPUT_TRANSFORM_NORMAL: - case WL_OUTPUT_TRANSFORM_FLIPPED: - case WL_OUTPUT_TRANSFORM_FLIPPED_90: - case WL_OUTPUT_TRANSFORM_FLIPPED_180: - case WL_OUTPUT_TRANSFORM_FLIPPED_270: - default: - inv = transform; - break; - } - - wlr_matrix_multiply(mat, mat, transforms[inv]); -} - // Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied void wlr_matrix_projection(float mat[static 9], int width, int height, enum wl_output_transform transform) {