diff options
Diffstat (limited to 'basegfx/source/polygon')
-rw-r--r-- | basegfx/source/polygon/b3dpolygon.cxx | 40 | ||||
-rw-r--r-- | basegfx/source/polygon/b3dpolypolygon.cxx | 28 |
2 files changed, 0 insertions, 68 deletions
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 5f62119d6746..5e0ed37c3bb7 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -1547,14 +1547,6 @@ namespace basegfx { } - B3DPolygon::B3DPolygon(const B3DPolygon& rPolygon, sal_uInt32 nIndex, sal_uInt32 nCount) : - mpPolygon(ImplB3DPolygon(*rPolygon.mpPolygon, nIndex, nCount)) - { - // TODO(P2): one extra temporary here (cow_wrapper copies - // given ImplB3DPolygon into its internal impl_t wrapper type) - OSL_ENSURE(nIndex + nCount > rPolygon.mpPolygon->count(), "B3DPolygon constructor outside range (!)"); - } - B3DPolygon::~B3DPolygon() { } @@ -1698,44 +1690,12 @@ namespace basegfx mpPolygon->clearTextureCoordinates(); } - void B3DPolygon::insert(sal_uInt32 nIndex, const ::basegfx::B3DPoint& rPoint, sal_uInt32 nCount) - { - OSL_ENSURE(nIndex <= mpPolygon->count(), "B3DPolygon Insert outside range (!)"); - - if(nCount) - mpPolygon->insert(nIndex, rPoint, nCount); - } - void B3DPolygon::append(const basegfx::B3DPoint& rPoint, sal_uInt32 nCount) { if(nCount) mpPolygon->insert(mpPolygon->count(), rPoint, nCount); } - void B3DPolygon::insert(sal_uInt32 nIndex, const B3DPolygon& rPoly, sal_uInt32 nIndex2, sal_uInt32 nCount) - { - OSL_ENSURE(nIndex <= mpPolygon->count(), "B3DPolygon Insert outside range (!)"); - - if(rPoly.count()) - { - if(!nCount) - { - nCount = rPoly.count(); - } - - if(0L == nIndex2 && nCount == rPoly.count()) - { - mpPolygon->insert(nIndex, *rPoly.mpPolygon); - } - else - { - OSL_ENSURE(nIndex2 + nCount <= rPoly.mpPolygon->count(), "B3DPolygon Insert outside range (!)"); - ImplB3DPolygon aTempPoly(*rPoly.mpPolygon, nIndex2, nCount); - mpPolygon->insert(nIndex, aTempPoly); - } - } - } - void B3DPolygon::append(const B3DPolygon& rPoly, sal_uInt32 nIndex, sal_uInt32 nCount) { if(rPoly.count()) diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx index be1db5e98efb..9291c4a3e601 100644 --- a/basegfx/source/polygon/b3dpolypolygon.cxx +++ b/basegfx/source/polygon/b3dpolypolygon.cxx @@ -258,12 +258,6 @@ namespace basegfx return *this; } - void B3DPolyPolygon::makeUnique() - { - mpPolyPolygon.make_unique(); - mpPolyPolygon->makeUnique(); - } - bool B3DPolyPolygon::operator==(const B3DPolyPolygon& rPolyPolygon) const { if(mpPolyPolygon.same_object(rPolyPolygon.mpPolyPolygon)) @@ -366,28 +360,12 @@ namespace basegfx mpPolyPolygon->clearTextureCoordinates(); } - void B3DPolyPolygon::insert(sal_uInt32 nIndex, const B3DPolygon& rPolygon, sal_uInt32 nCount) - { - OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B3DPolyPolygon Insert outside range (!)"); - - if(nCount) - mpPolyPolygon->insert(nIndex, rPolygon, nCount); - } - void B3DPolyPolygon::append(const B3DPolygon& rPolygon, sal_uInt32 nCount) { if(nCount) mpPolyPolygon->insert(mpPolyPolygon->count(), rPolygon, nCount); } - void B3DPolyPolygon::insert(sal_uInt32 nIndex, const B3DPolyPolygon& rPolyPolygon) - { - OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B3DPolyPolygon Insert outside range (!)"); - - if(rPolyPolygon.count()) - mpPolyPolygon->insert(nIndex, rPolyPolygon); - } - void B3DPolyPolygon::append(const B3DPolyPolygon& rPolyPolygon) { if(rPolyPolygon.count()) @@ -424,12 +402,6 @@ namespace basegfx return bRetval; } - void B3DPolyPolygon::setClosed(bool bNew) - { - if(bNew != isClosed()) - mpPolyPolygon->setClosed(bNew); - } - void B3DPolyPolygon::flip() { mpPolyPolygon->flip(); |