diff --git a/gfx/thebes/gfxContext.cpp b/gfx/thebes/gfxContext.cpp index 7691fde75611..1231fc02836b 100644 --- a/gfx/thebes/gfxContext.cpp +++ b/gfx/thebes/gfxContext.cpp @@ -297,21 +297,6 @@ gfxContext::Rectangle(const gfxRect& rect, bool snapToPixels) mPathBuilder->Close(); } -void -gfxContext::Polygon(const gfxPoint *points, uint32_t numPoints) -{ - if (numPoints == 0) { - return; - } - - EnsurePathBuilder(); - - mPathBuilder->MoveTo(ToPoint(points[0])); - for (uint32_t i = 1; i < numPoints; i++) { - mPathBuilder->LineTo(ToPoint(points[i])); - } -} - void gfxContext::DrawSurface(gfxASurface *surface, const gfxSize& size) { diff --git a/gfx/thebes/gfxContext.h b/gfx/thebes/gfxContext.h index ed2c90780e03..988dfb68886c 100644 --- a/gfx/thebes/gfxContext.h +++ b/gfx/thebes/gfxContext.h @@ -160,11 +160,6 @@ public: void Rectangle(const gfxRect& rect, bool snapToPixels = false); void SnappedRectangle(const gfxRect& rect) { return Rectangle(rect, true); } - /** - * Draw a polygon from the given points - */ - void Polygon(const gfxPoint *points, uint32_t numPoints); - /** ** Transformation Matrix manipulation **/