* Code simplifications in FTContour.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/src/FTContour.cpp b/src/FTContour.cpp
index e54ef19..3aaf454 100644
--- a/src/FTContour.cpp
+++ b/src/FTContour.cpp
@@ -230,10 +230,7 @@ void FTContour::buildFrontOutset(float outset)
{
for(size_t i = 0; i < PointCount(); ++i)
{
- FTPoint point = FTPoint(Point(i).X() + Outset(i).X() * outset,
- Point(i).Y() + Outset(i).Y() * outset,
- 0);
- AddFrontPoint(point);
+ AddFrontPoint(Point(i) + Outset(i) * outset);
}
}
@@ -242,10 +239,7 @@ void FTContour::buildBackOutset(float outset)
{
for(size_t i = 0; i < PointCount(); ++i)
{
- FTPoint point = FTPoint(Point(i).X() + Outset(i).X() * outset,
- Point(i).Y() + Outset(i).Y() * outset,
- 0);
- AddBackPoint(point);
+ AddBackPoint(Point(i) + Outset(i) * outset);
}
}
diff --git a/src/FTContour.h b/src/FTContour.h
index d1a3501..d14dfbf 100644
--- a/src/FTContour.h
+++ b/src/FTContour.h
@@ -115,15 +115,6 @@ class FTContour
size_t PointCount() const { return pointList.size(); }
/**
- * How many points define this outset contour
- *
- * @return the number of points in this contour
- */
- size_t OutsetPointCount() const { return outsetPointList.size(); }
- size_t FrontPointCount() const { return frontPointList.size(); }
- size_t BackPointCount() const { return backPointList.size(); }
-
- /**
* Make sure the glyph has the proper parity and create the front/back
* outset contour.
*