Commit 11e01dd2 authored by timloh@chromium.org's avatar timloh@chromium.org

Remove unused TransformOperation::isIdentity

Review URL: https://codereview.chromium.org/551183003

git-svn-id: svn://svn.chromium.org/blink/trunk@181613 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 87f4a9d7
......@@ -42,7 +42,6 @@ public:
}
private:
virtual bool isIdentity() const OVERRIDE FINAL { return true; }
virtual OperationType type() const OVERRIDE { return Identity; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -50,8 +50,6 @@ public:
}
private:
virtual bool isIdentity() const OVERRIDE { return false; }
virtual OperationType type() const OVERRIDE { return Interpolated; }
virtual bool operator==(const TransformOperation&) const OVERRIDE;
......
......@@ -45,8 +45,6 @@ public:
}
private:
virtual bool isIdentity() const OVERRIDE { return m_matrix.isIdentity(); }
virtual OperationType type() const OVERRIDE { return Matrix3D; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -50,8 +50,6 @@ public:
}
private:
virtual bool isIdentity() const OVERRIDE { return m_a == 1 && !m_b && !m_c && m_d == 1 && !m_e && !m_f; }
virtual OperationType type() const OVERRIDE { return Matrix; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -45,7 +45,6 @@ public:
}
private:
virtual bool isIdentity() const OVERRIDE { return !m_p; }
virtual OperationType type() const OVERRIDE { return Perspective; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -53,8 +53,6 @@ public:
virtual OperationType type() const OVERRIDE { return m_type; }
private:
virtual bool isIdentity() const OVERRIDE { return !m_angle; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
{
if (!isSameType(o))
......
......@@ -48,8 +48,6 @@ public:
virtual bool canBlendWith(const TransformOperation& other) const;
private:
virtual bool isIdentity() const OVERRIDE { return m_x == 1 && m_y == 1 && m_z == 1; }
virtual OperationType type() const OVERRIDE { return m_type; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -41,7 +41,6 @@ public:
virtual bool canBlendWith(const TransformOperation& other) const;
private:
virtual bool isIdentity() const OVERRIDE { return !m_angleX && !m_angleY; }
virtual OperationType type() const OVERRIDE { return m_type; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
......@@ -57,8 +57,6 @@ public:
virtual bool operator==(const TransformOperation&) const = 0;
bool operator!=(const TransformOperation& o) const { return !(*this == o); }
virtual bool isIdentity() const = 0;
virtual void apply(TransformationMatrix&, const FloatSize& borderBoxSize) const = 0;
virtual PassRefPtr<TransformOperation> blend(const TransformOperation* from, double progress, bool blendToIdentity = false) = 0;
......
......@@ -53,8 +53,6 @@ public:
double z() const { return m_z; }
private:
virtual bool isIdentity() const OVERRIDE { return !floatValueForLength(m_x, 1) && !floatValueForLength(m_y, 1) && !m_z; }
virtual OperationType type() const OVERRIDE { return m_type; }
virtual bool operator==(const TransformOperation& o) const OVERRIDE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment