summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-05-11 10:50:01 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-05-11 22:48:49 +0200
commit5c3615c1152eabfda508504c8a4c5727868acbc8 (patch)
tree940ef44cb71fb870a04b366585d996a6254d2117 /basegfx
parentf2827fb15f530e002d722780be26caf326a45646 (diff)
unusedcode: basegfx::tools::equal
Change-Id: I I579fd3de05f78f06af06c53afab1cc70fc700082
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontools.hxx4
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygontools.hxx4
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx44
-rw-r--r--basegfx/source/polygon/b3dpolygontools.cxx26
4 files changed, 0 insertions, 78 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
index d26475e23694..0c106cb15e1d 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
@@ -426,10 +426,6 @@ namespace basegfx
*/
BASEGFX_DLLPUBLIC B2DPolygon createWaveline(const B2DPolygon& rCandidate, double fWaveWidth, double fWaveHeight);
- //////////////////////////////////////////////////////////////////////
- // comparators with tolerance for 2D Polygons
- BASEGFX_DLLPUBLIC bool equal(const B2DPolygon& rCandidateA, const B2DPolygon& rCandidateB, const double& rfSmallValue);
-
/** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
index 1ff1e6e285e6..8ebead8b1da0 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
@@ -122,10 +122,6 @@ namespace basegfx
// and a line given by start and end point
BASEGFX_DLLPUBLIC bool getCutBetweenLineAndPlane(const B3DVector& rPlaneNormal, const B3DPoint& rPlanePoint, const B3DPoint& rEdgeStart, const B3DPoint& rEdgeEnd, double& fCut);
- //////////////////////////////////////////////////////////////////////
- // comparators with tolerance for 3D Polygons
- BASEGFX_DLLPUBLIC bool equal(const B3DPolygon& rCandidateA, const B3DPolygon& rCandidateB, const double& rfSmallValue);
-
/** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index cfe9f3a71bc5..babc779e2144 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3121,50 +3121,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 bcec7203e22a..e367b8e679e6 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -740,32 +740,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)
{