Bug 1082483, part 3 - Remove the temporary Matrix4x4::Translate/Scale methods. r=Bas
--- a/gfx/2d/Matrix.h
+++ b/gfx/2d/Matrix.h
@@ -562,20 +562,16 @@ public:
{
_41 += aX * _11 + aY * _21 + aZ * _31;
_42 += aX * _12 + aY * _22 + aZ * _32;
_43 += aX * _13 + aY * _23 + aZ * _33;
_44 += aX * _14 + aY * _24 + aZ * _34;
return *this;
}
- Matrix4x4 &Translate(Float aX, Float aY, Float aZ)
- {
- return PreTranslate(aX, aY, aZ);
- }
/**
* Similar to PreTranslate, but the translation is applied -after- this
* matrix's existing transformation instead of before it.
*
* This method is generally less used than PreTranslate since typically code
* wants to adjust an existing user space to device space matrix to create a
* transform to device space from a -new- user space (translated from the
@@ -622,20 +618,16 @@ public:
_22 *= aY;
_23 *= aY;
_31 *= aZ;
_32 *= aZ;
_33 *= aZ;
return *this;
}
- Matrix4x4 &Scale(Float aX, Float aY, Float aZ)
- {
- return PreScale(aX, aY, aZ);
- }
/**
* Similar to PostTranslate, but applies a scale instead of a translation.
*/
Matrix4x4 &PostScale(Float aScaleX, Float aScaleY, Float aScaleZ)
{
_11 *= aScaleX;
_21 *= aScaleX;