summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 19:07:02 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 19:08:38 +0200
commitff05b6b10094de3e27f9d200c0ccdbb2f6cc76c5 (patch)
tree51ecc03fc09d8f15f68bc38bb96f705308776787 /basegfx
parent1d28f42838f6396f610d6a6d42eef8d3de6cf40f (diff)
Remove unused basegfx::tools::equal
Change-Id: I2fb3121c711dfdd1e2081681864a6f4753960a81
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx44
-rw-r--r--basegfx/source/polygon/b3dpolygontools.cxx26
2 files changed, 0 insertions, 70 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 0e6b2b96cdb3..709a2f156626 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3133,50 +3133,6 @@ namespace basegfx
return aRetval;
}
-
- // 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)
{
diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx
index 4dd773408508..f3e42700c10a 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -734,32 +734,6 @@ namespace basegfx
return false;
}
-
- // comparators with tolerance for 3D Polygons
-
- bool equal(const B3DPolygon& rCandidateA, const B3DPolygon& 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;
-
- for(sal_uInt32 a(0); a < nPointCount; a++)
- {
- const B3DPoint aPoint(rCandidateA.getB3DPoint(a));
-
- if(!aPoint.equal(rCandidateB.getB3DPoint(a), rfSmallValue))
- return false;
- }
-
- return true;
- }
-
// snap points of horizontal or vertical edges to discrete values
B3DPolygon snapPointsOfHorizontalOrVerticalEdges(const B3DPolygon& rCandidate)
{