diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-03 14:52:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-05 09:17:44 +0200 |
commit | 4ec1f764ae662684cdcd394d2799bc09ade88c91 (patch) | |
tree | 6ddf0768e8698b9423ebc2373e4d874a4226eb01 /basegfx/source/polygon/b2dpolygontools.cxx | |
parent | adbf974f828b23c4645e39267131428a2fa46792 (diff) |
remove unused code in basegfx
basegfx::tools::containsOnlyHorizontalAndVerticalEdges(basegfx::B2DPolyPolygon const&)
basegfx::tools::equal(basegfx::B2DPolygon const&, basegfx::B2DPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&)
Change-Id: Ia20358dca68e2240ca9eadd43a18fc6c1a3693a0
Diffstat (limited to 'basegfx/source/polygon/b2dpolygontools.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 5a3dfcd4c076..dc511b957122 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -3134,49 +3134,6 @@ namespace basegfx } - // comparators with tolerance for 2D Polygons - - bool equal(const B2DPolygon& rCandidateA, const B2DPolygon& rCandidateB, const double& rfSmallValue) - { - const sal_uInt32 nPointCount(rCandidateA.count()); - - if(nPointCount != rCandidateB.count()) - return false; - - const bool bClosed(rCandidateA.isClosed()); - - if(bClosed != rCandidateB.isClosed()) - return false; - - const bool bAreControlPointsUsed(rCandidateA.areControlPointsUsed()); - - if(bAreControlPointsUsed != rCandidateB.areControlPointsUsed()) - return false; - - for(sal_uInt32 a(0); a < nPointCount; a++) - { - const B2DPoint aPoint(rCandidateA.getB2DPoint(a)); - - if(!aPoint.equal(rCandidateB.getB2DPoint(a), rfSmallValue)) - return false; - - if(bAreControlPointsUsed) - { - const basegfx::B2DPoint aPrev(rCandidateA.getPrevControlPoint(a)); - - if(!aPrev.equal(rCandidateB.getPrevControlPoint(a), rfSmallValue)) - return false; - - const basegfx::B2DPoint aNext(rCandidateA.getNextControlPoint(a)); - - if(!aNext.equal(rCandidateB.getNextControlPoint(a), rfSmallValue)) - return false; - } - } - - return true; - } - // snap points of horizontal or vertical edges to discrete values B2DPolygon snapPointsOfHorizontalOrVerticalEdges(const B2DPolygon& rCandidate) { |