Remove unused basegfx::tools::equal

Change-Id: I2fb3121c711dfdd1e2081681864a6f4753960a81
This commit is contained in:
Miklos Vajna
2014-04-22 19:07:02 +02:00
parent 1d28f42838
commit ff05b6b100
5 changed files with 0 additions and 80 deletions

View File

@@ -3133,50 +3133,6 @@ namespace basegfx
return aRetval; 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 // snap points of horizontal or vertical edges to discrete values
B2DPolygon snapPointsOfHorizontalOrVerticalEdges(const B2DPolygon& rCandidate) B2DPolygon snapPointsOfHorizontalOrVerticalEdges(const B2DPolygon& rCandidate)
{ {

View File

@@ -734,32 +734,6 @@ namespace basegfx
return false; 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 // snap points of horizontal or vertical edges to discrete values
B3DPolygon snapPointsOfHorizontalOrVerticalEdges(const B3DPolygon& rCandidate) B3DPolygon snapPointsOfHorizontalOrVerticalEdges(const B3DPolygon& rCandidate)
{ {

View File

@@ -422,10 +422,6 @@ namespace basegfx
*/ */
BASEGFX_DLLPUBLIC B2DPolygon createWaveline(const B2DPolygon& rCandidate, double fWaveWidth, double fWaveHeight); 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 /** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values This method allows to snap some polygon points to discrete (integer) values

View File

@@ -113,10 +113,6 @@ namespace basegfx
// and a line given by start and end point // 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); 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 /** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values This method allows to snap some polygon points to discrete (integer) values

View File

@@ -184,8 +184,6 @@ apitest::XText::testInsertRemoveTextContent()
apitest::XTextContent::testAttach() apitest::XTextContent::testAttach()
apitest::XTextContent::testGetAnchor() apitest::XTextContent::testGetAnchor()
apitest::XTextField::testGetPresentation() apitest::XTextField::testGetPresentation()
basegfx::tools::equal(basegfx::B2DPolygon const&, basegfx::B2DPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolygon const&, basegfx::B3DPolygon const&, double const&)
canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&) canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&)
chart::opengl3D::Line::Line(unsigned int) chart::opengl3D::Line::Line(unsigned int)
chart::opengl3D::Rectangle::Rectangle(unsigned int) chart::opengl3D::Rectangle::Rectangle(unsigned int)