Mod/Path: Removed -Wunused-function warnings.

This commit is contained in:
Eivind Kvedalen 2015-08-31 22:05:19 +02:00 committed by wmayer
parent c05baee29a
commit cbee95494e
3 changed files with 9 additions and 0 deletions

View File

@ -134,6 +134,7 @@ static void AddVertex(const CVertex& vertex, const CVertex* prev_vertex)
}
}
#if 0
static bool IsPolygonClockwise(const TPolygon& p)
{
#if 1
@ -158,6 +159,8 @@ static bool IsPolygonClockwise(const TPolygon& p)
return IsClockwise(p);
#endif
}
#endif
static void MakeLoop(const DoubleAreaPoint &pt0, const DoubleAreaPoint &pt1, const DoubleAreaPoint &pt2, double radius)
{

View File

@ -425,6 +425,7 @@ void recur(std::list<CArea> &arealist, const CArea& a1, const CAreaPocketParams
}
}
#if 0
static CArea make_obround(const Point& p0, const Point& p1, double radius)
{
Point dir = p1 - p0;
@ -445,13 +446,16 @@ static CArea make_obround(const Point& p0, const Point& p1, double radius)
obround.append(c);
return obround;
}
#endif
#if 0
static bool feed_possible(const CArea &area_for_feed_possible, const Point& p0, const Point& p1, double tool_radius)
{
CArea obround = make_obround(p0, p1, tool_radius);
obround.Subtract(area_for_feed_possible);
return obround.m_curves.empty();
}
#endif
void MarkOverlappingOffsetIslands(std::list<IslandAndOffset> &offset_islands)
{

View File

@ -720,10 +720,12 @@ static geoff_geometry::Span MakeSpan(const Span& span)
return geoff_geometry::Span(span.m_v.m_type, geoff_geometry::Point(span.m_p.x, span.m_p.y), geoff_geometry::Point(span.m_v.m_p.x, span.m_v.m_p.y), geoff_geometry::Point(span.m_v.m_c.x, span.m_v.m_c.y));
}
#if 0
static Span MakeCSpan(const geoff_geometry::Span &sp)
{
return Span(Point(sp.p0.x, sp.p0.y), CVertex(sp.dir, Point(sp.p1.x, sp.p1.y), Point(sp.pc.x, sp.pc.y)));
}
#endif
bool CCurve::Offset(double leftwards_value)
{