Commit 4a3dd0f53950c9113acf22b8e30b29fde30bb6ed

sammy 2008-06-09T11:47:42

* Code simplifications in FTContour.

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.
          *