From 93ad84faeb4192c49143bb3e04fc445547372fc0 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Thu, 30 May 2024 18:41:16 -0400 Subject: [PATCH] Remove unused code. These appear to have been copied from elsewhere and never used. --- src/lime/math/Matrix3.hx | 42 ---------------------------------------- 1 file changed, 42 deletions(-) diff --git a/src/lime/math/Matrix3.hx b/src/lime/math/Matrix3.hx index 4145b799d..ba3dc2efd 100644 --- a/src/lime/math/Matrix3.hx +++ b/src/lime/math/Matrix3.hx @@ -54,8 +54,6 @@ abstract Matrix3(Float32Array) to Float32Array **/ public var ty(get, set):Float; - private static var __identity = new Matrix3(); - /** Creates a new `Matrix` instance @param a (Optional) An initial a component value (default is 1) @@ -389,12 +387,6 @@ abstract Matrix3(Float32Array) to Float32Array return this; } - // public inline function mult (m:Matrix3) { - // var result = clone (); - // result.concat (m); - // return result; - // } - /** Applies rotation to the current matrix @param theta A rotation value in degrees @@ -482,40 +474,6 @@ abstract Matrix3(Float32Array) to Float32Array set_ty(ty); } - @:dox(hide) @:noCompletion public inline function to3DString(roundPixels:Bool = false):String - { - // identity matrix - // [a,b,tx,0], - // [c,d,ty,0], - // [0,0,1, 0], - // [0,0,0, 1] - // - // matrix3d(a, b, 0, 0, c, d, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1) - - if (roundPixels) - { - return "matrix3d(" - + a - + ", " - + b - + ", " - + "0, 0, " - + c - + ", " - + d - + ", " - + "0, 0, 0, 0, 1, 0, " - + Std.int(tx) - + ", " - + Std.int(ty) - + ", 0, 1)"; - } - else - { - return "matrix3d(" + a + ", " + b + ", " + "0, 0, " + c + ", " + d + ", " + "0, 0, 0, 0, 1, 0, " + tx + ", " + ty + ", 0, 1)"; - } - } - @:dox(hide) @:noCompletion @:to public inline function toCairoMatrix3():CairoMatrix3 { return new CairoMatrix3(a, b, c, d, tx, ty);