From 6fc00fafcbac1fd5edd767fe2d4a8e4a9ef52806 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 19 Nov 2015 15:41:53 -0800 Subject: Remove CFX_Matrix::Reset() It's unused on master, and on XFA, directly calling SetIdentity() is clearer to the reader anyways. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1459243002 . --- core/include/fxcrt/fx_coordinates.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/include/fxcrt/fx_coordinates.h b/core/include/fxcrt/fx_coordinates.h index ddd0f572c8..e7fbe8549b 100644 --- a/core/include/fxcrt/fx_coordinates.h +++ b/core/include/fxcrt/fx_coordinates.h @@ -607,10 +607,7 @@ class CFX_FloatRect { }; class CFX_Matrix { public: - CFX_Matrix() { - a = d = 1; - b = c = e = f = 0; - } + CFX_Matrix() { SetIdentity(); } CFX_Matrix(FX_FLOAT a1, FX_FLOAT b1, @@ -648,11 +645,8 @@ class CFX_Matrix { FX_FLOAT e, FX_FLOAT f, FX_BOOL bPrepended = FALSE); - void Concat(const CFX_Matrix& m, FX_BOOL bPrepended = FALSE); - void ConcatInverse(const CFX_Matrix& m, FX_BOOL bPrepended = FALSE); - void Reset() { SetIdentity(); } void Copy(const CFX_Matrix& m) { *this = m; } -- cgit v1.2.3