diff --git a/libraries/AP_Math/matrix3.h b/libraries/AP_Math/matrix3.h index f389c61d24..766dbadbd7 100644 --- a/libraries/AP_Math/matrix3.h +++ b/libraries/AP_Math/matrix3.h @@ -59,13 +59,6 @@ public: bool operator != (const Matrix3 &m) { return (a!=m.a || b!=m.b || c!=m.c); } - // set to value - Matrix3 &operator = (const Matrix3 &m) - { - a= m.a; b= m.b; c= m.c; - return *this; - } - // negation const Matrix3 operator - (void) const { return Matrix3(-a,-b,-c); } diff --git a/libraries/AP_Math/vector2.h b/libraries/AP_Math/vector2.h index 7fbab08952..6547d0d4e6 100644 --- a/libraries/AP_Math/vector2.h +++ b/libraries/AP_Math/vector2.h @@ -57,13 +57,6 @@ struct Vector2 bool operator!=(const Vector2 &v) { return (x!=v.x || y!=v.y); } - // set to value - Vector2 &operator =(const Vector2 &v) - { - x= v.x; y= v.y; - return *this; - } - // negation const Vector2 operator -(void) const { return Vector2(-x, -y); } diff --git a/libraries/AP_Math/vector3.h b/libraries/AP_Math/vector3.h index 2b80352438..8a56f2a7ef 100644 --- a/libraries/AP_Math/vector3.h +++ b/libraries/AP_Math/vector3.h @@ -67,13 +67,6 @@ public: bool operator!=(const Vector3 &v) { return (x!=v.x || y!=v.y || z!=v.z); } - // set to value - Vector3 &operator =(const Vector3 &v) - { - x= v.x; y= v.y; z= v.z; - return *this; - } - // negation const Vector3 operator -(void) const { return Vector3(-x,-y,-z); }