Use implicit copy constructor, move constructor, and move assignment operator. draft
authorMiko Mynttinen <mikokm@gmail.com>
Fri, 05 Aug 2016 09:51:29 -0700
changeset 398882 7ad98fcaddb933da1e08e8d2f87e2a85678f7deb
parent 398881 3386a8b99c9a1d62c8f12ea301da8cd60ae5b49f
child 398883 d3f6d9f6f82b8a5c22acf75e5d82ec7bad817da5
push id25668
push userbmo:mikokm@gmail.com
push dateTue, 09 Aug 2016 23:22:28 +0000
milestone51.0a1
Use implicit copy constructor, move constructor, and move assignment operator. MozReview-Commit-ID: 1pbHV26bESw
gfx/2d/Polygon.h
--- a/gfx/2d/Polygon.h
+++ b/gfx/2d/Polygon.h
@@ -26,31 +26,16 @@ public:
   }
 
   explicit BasePolygon3D(const nsTArray<Point3DTyped<Units>>& aPoints)
     : mPoints(aPoints)
   {
     CalculateNormal();
   }
 
-  BasePolygon3D(const BasePolygon3D& aOther)
-    : mPoints(aOther.mPoints)
-    , mNormal(aOther.mNormal) {}
-
-  BasePolygon3D(BasePolygon3D && aOther)
-    : mPoints(std::move(aOther.mPoints))
-    , mNormal(std::move(aOther.mNormal)) {}
-
-  BasePolygon3D& operator=(BasePolygon3D && aOther)
-  {
-    mPoints = std::move(aOther.mPoints);
-    mNormal = std::move(aOther.mNormal);
-    return *this;
-  }
-
   const Point3DTyped<Units>& GetNormal() const
   {
     return mNormal;
   }
 
   const nsTArray<Point3D>& GetPoints() const
   {
     return mPoints;