aboutsummaryrefslogtreecommitdiff
path: root/common/polygon.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/polygon.h')
-rw-r--r--common/polygon.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/polygon.h b/common/polygon.h
index e4a518193e..69df2c0ca3 100644
--- a/common/polygon.h
+++ b/common/polygon.h
@@ -28,15 +28,14 @@
#include "common/array.h"
#include "common/rect.h"
-#include "common/shape.h"
namespace Common {
-struct Polygon : public Shape {
+struct Polygon {
Polygon() {}
- Polygon(const Polygon& p) : Shape(), _points(p._points), _bound(p._bound) {}
+ Polygon(const Polygon& p) : _points(p._points), _bound(p._bound) {}
Polygon(Array<Point> p) : _points(p) {
if (p.empty()) return;
_bound = Rect(p[0].x, p[0].y, p[0].x, p[0].y);