summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolygon.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/polygon/b2dpolygon.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index 3bc0401e271e..a7749220931c 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -1378,17 +1378,6 @@ namespace basegfx
}
}
- void B2DPolygon::resetControlPoints(sal_uInt32 nIndex)
- {
- OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
- if(mpPolygon->areControlPointsUsed() &&
- (!mpPolygon->getPrevControlVector(nIndex).equalZero() || !mpPolygon->getNextControlVector(nIndex).equalZero()))
- {
- mpPolygon->resetControlVectors(nIndex);
- }
- }
-
void B2DPolygon::resetControlPoints()
{
if(mpPolygon->areControlPointsUsed())
@@ -1451,35 +1440,6 @@ namespace basegfx
}
}
- bool B2DPolygon::isBezierSegment(sal_uInt32 nIndex) const
- {
- OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
- if(mpPolygon->areControlPointsUsed())
- {
- // Check if the edge exists
- const bool bNextIndexValidWithoutClose(nIndex + 1 < mpPolygon->count());
-
- if(bNextIndexValidWithoutClose || mpPolygon->isClosed())
- {
- const sal_uInt32 nNextIndex(bNextIndexValidWithoutClose ? nIndex + 1 : 0);
- return (!mpPolygon->getPrevControlVector(nNextIndex).equalZero()
- || !mpPolygon->getNextControlVector(nIndex).equalZero());
- }
- else
- {
- // no valid edge -> no bezier segment, even when local next
- // vector may be used
- return false;
- }
- }
- else
- {
- // no control points -> no bezier segment
- return false;
- }
- }
-
void B2DPolygon::getBezierSegment(sal_uInt32 nIndex, B2DCubicBezier& rTarget) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");