From 4b39b1c76b4347a817b010b9d88b4c220a02170b Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 7 Oct 2022 13:48:49 +0200 Subject: [PATCH] Remove the unused `Util.apply3dTransform` method This method was originally added in PR 1157 (back in 2012), however its only call-site was then removed in PR 2423 (also in 2012). Hence this method has been completely unused for nearly a decade, and it should thus be safe to remove it. --- src/shared/util.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/shared/util.js b/src/shared/util.js index d6ffb4616..80637bf6e 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -857,20 +857,6 @@ class Util { ]; } - // Apply a generic 3d matrix M on a 3-vector v: - // | a b c | | X | - // | d e f | x | Y | - // | g h i | | Z | - // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i], - // with v as [X,Y,Z] - static apply3dTransform(m, v) { - return [ - m[0] * v[0] + m[1] * v[1] + m[2] * v[2], - m[3] * v[0] + m[4] * v[1] + m[5] * v[2], - m[6] * v[0] + m[7] * v[1] + m[8] * v[2], - ]; - } - // This calculation uses Singular Value Decomposition. // The SVD can be represented with formula A = USV. We are interested in the // matrix S here because it represents the scale values.