summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 18:30:03 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-04-22 19:08:37 +0200
commit34fa29ed4c0fa73d3e07e62cb6ca2577ee115b35 (patch)
treea5b878a590e4cf69189567e2e650ddc65ffd391a
parent81bce2dc7e55dba5314b9388d6eb803aa998091a (diff)
Remove unused basegfx::tools::containsOnlyHorizontalAndVerticalEdges
Change-Id: I8a8b7a5b47cd9e566c1b3154a527c78a8fcbd7df
-rw-r--r--basegfx/source/polygon/b2dpolypolygontools.cxx18
-rw-r--r--include/basegfx/polygon/b2dpolypolygontools.hxx5
-rw-r--r--unusedcode.easy1
3 files changed, 0 insertions, 24 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index 35bc6ed14d47..f904d645bdf3 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -497,24 +497,6 @@ namespace basegfx
return aRetval;
}
- bool containsOnlyHorizontalAndVerticalEdges(const B2DPolyPolygon& rCandidate)
- {
- if(rCandidate.areControlPointsUsed())
- {
- return false;
- }
-
- for(sal_uInt32 a(0); a < rCandidate.count(); a++)
- {
- if(!containsOnlyHorizontalAndVerticalEdges(rCandidate.getB2DPolygon(a)))
- {
- return false;
- }
- }
-
- return true;
- }
-
B2DPolyPolygon createSevenSegmentPolyPolygon(sal_Char nNumber, bool bLitSegments)
{
// config here
diff --git a/include/basegfx/polygon/b2dpolypolygontools.hxx b/include/basegfx/polygon/b2dpolypolygontools.hxx
index e92fe5a2f01a..c21489ae2053 100644
--- a/include/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/include/basegfx/polygon/b2dpolypolygontools.hxx
@@ -287,11 +287,6 @@ namespace basegfx
*/
BASEGFX_DLLPUBLIC B2DPolyPolygon snapPointsOfHorizontalOrVerticalEdges(const B2DPolyPolygon& rCandidate);
- /** returns true if the Polygon only contains horizontal or vertical edges
- so that it could be represented by RegionBands
- */
- BASEGFX_DLLPUBLIC bool containsOnlyHorizontalAndVerticalEdges(const B2DPolyPolygon& rCandidate);
-
/// converters for com::sun::star::drawing::PointSequence
BASEGFX_DLLPUBLIC B2DPolyPolygon UnoPointSequenceSequenceToB2DPolyPolygon(
const com::sun::star::drawing::PointSequenceSequence& rPointSequenceSequenceSource,
diff --git a/unusedcode.easy b/unusedcode.easy
index 696482c03b67..6da3715867df 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -184,7 +184,6 @@ apitest::XText::testInsertRemoveTextContent()
apitest::XTextContent::testAttach()
apitest::XTextContent::testGetAnchor()
apitest::XTextField::testGetPresentation()
-basegfx::tools::containsOnlyHorizontalAndVerticalEdges(basegfx::B2DPolyPolygon const&)
basegfx::tools::equal(basegfx::B2DPolygon const&, basegfx::B2DPolygon const&, double const&)
basegfx::tools::equal(basegfx::B3DPolygon const&, basegfx::B3DPolygon const&, double const&)
basegfx::unotools::homMatrixFromMatrix(basegfx::B2DHomMatrix&, com::sun::star::geometry::Matrix2D const&)