summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon
diff options
context:
space:
mode:
authorAlexander Bergmann <myaddons@gmx.de>2012-02-01 16:34:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-01 16:34:50 +0000
commitb3c3e116ff0eb9b550b73d3901395c042e31d192 (patch)
tree10814ac19c46bffb767d25e9ec408531d3878c14 /basegfx/source/polygon
parentbc8fa08a7ae48f68ee5578cb7820336c70898202 (diff)
unusedcode.easy: Removed unused code
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx24
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx5
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx24
3 files changed, 0 insertions, 53 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index a7749220931c..3d7b9487ccb4 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -1484,30 +1484,6 @@ namespace basegfx
return mpPolygon->getB2DRange(*this);
}
- void B2DPolygon::insert(sal_uInt32 nIndex, const B2DPolygon& rPoly, sal_uInt32 nIndex2, sal_uInt32 nCount)
- {
- OSL_ENSURE(nIndex <= mpPolygon->count(), "B2DPolygon Insert outside range (!)");
-
- if(rPoly.count())
- {
- if(!nCount)
- {
- nCount = rPoly.count();
- }
-
- if(0 == nIndex2 && nCount == rPoly.count())
- {
- mpPolygon->insert(nIndex, *rPoly.mpPolygon);
- }
- else
- {
- OSL_ENSURE(nIndex2 + nCount <= rPoly.mpPolygon->count(), "B2DPolygon Insert outside range (!)");
- ImplB2DPolygon aTempPoly(*rPoly.mpPolygon, nIndex2, nCount);
- mpPolygon->insert(nIndex, aTempPoly);
- }
- }
- }
-
void B2DPolygon::append(const B2DPolygon& rPoly, sal_uInt32 nIndex, sal_uInt32 nCount)
{
if(rPoly.count())
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx
index 5e0ed37c3bb7..8b802b4590fb 100644
--- a/basegfx/source/polygon/b3dpolygon.cxx
+++ b/basegfx/source/polygon/b3dpolygon.cxx
@@ -1557,11 +1557,6 @@ namespace basegfx
return *this;
}
- void B3DPolygon::makeUnique()
- {
- mpPolygon.make_unique();
- }
-
bool B3DPolygon::operator==(const B3DPolygon& rPolygon) const
{
if(mpPolygon.same_object(rPolygon.mpPolygon))
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx
index 9291c4a3e601..f4bcf80fc24c 100644
--- a/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -186,13 +186,6 @@ public:
}
}
- void makeUnique()
- {
- std::for_each( maPolygons.begin(),
- maPolygons.end(),
- std::mem_fun_ref( &::basegfx::B3DPolygon::makeUnique ));
- }
-
const basegfx::B3DPolygon* begin() const
{
if(maPolygons.empty())
@@ -385,23 +378,6 @@ namespace basegfx
mpPolyPolygon = DefaultPolyPolygon::get();
}
- bool B3DPolyPolygon::isClosed() const
- {
- bool bRetval(true);
-
- // PolyPOlygon is closed when all contained Polygons are closed or
- // no Polygon exists.
- for(sal_uInt32 a(0L); bRetval && a < mpPolyPolygon->count(); a++)
- {
- if(!(mpPolyPolygon->getB3DPolygon(a)).isClosed())
- {
- bRetval = false;
- }
- }
-
- return bRetval;
- }
-
void B3DPolyPolygon::flip()
{
mpPolyPolygon->flip();