summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-18 09:37:44 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 10:20:31 +0200
commite18b08363a939b35e7f5dc435e606d2c62bddebd (patch)
tree6318e03a67fd2dfbbd29b88b3de36ad7e9fd6292 /drawinglayer
parent20ff8cc5c3534d149b18b9776ab964324e70fdfd (diff)
loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/baseprimitive2d.cxx50
-rw-r--r--drawinglayer/source/primitive3d/baseprimitive3d.cxx43
2 files changed, 0 insertions, 93 deletions
diff --git a/drawinglayer/source/primitive2d/baseprimitive2d.cxx b/drawinglayer/source/primitive2d/baseprimitive2d.cxx
index b17fbb66a31e..44008a227eea 100644
--- a/drawinglayer/source/primitive2d/baseprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/baseprimitive2d.cxx
@@ -273,45 +273,6 @@ namespace drawinglayer
return true;
}
- // concatenate sequence
- void appendPrimitive2DSequenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DSequence& rSource)
- {
- if(rSource.hasElements())
- {
- if(rDest.hasElements())
- {
- const sal_Int32 nSourceCount(rSource.getLength());
- const sal_Int32 nDestCount(rDest.getLength());
- const sal_Int32 nTargetCount(nSourceCount + nDestCount);
- sal_Int32 nInsertPos(nDestCount);
-
- rDest.realloc(nTargetCount);
-
- for(sal_Int32 a(0L); a < nSourceCount; a++)
- {
- if(rSource[a].is())
- {
- rDest[nInsertPos++] = rSource[a];
- }
- }
-
- if(nInsertPos != nTargetCount)
- {
- rDest.realloc(nInsertPos);
- }
- }
- else
- {
- rDest = rSource;
- }
- }
- }
-
- void appendPrimitive2DSequenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DContainer& rSource)
- {
- appendPrimitive2DSequenceToPrimitive2DSequence(rDest, comphelper::containerToSequence(rSource));
- }
-
void Primitive2DContainer::append(const Primitive2DContainer& rSource)
{
insert(end(), rSource.begin(), rSource.end());
@@ -332,17 +293,6 @@ namespace drawinglayer
std::copy(rSource.begin(), rSource.end(), std::back_inserter(*this));
}
- // concatenate single Primitive2D
- void appendPrimitive2DReferenceToPrimitive2DSequence(Primitive2DSequence& rDest, const Primitive2DReference& rSource)
- {
- if(rSource.is())
- {
- const sal_Int32 nDestCount(rDest.getLength());
- rDest.realloc(nDestCount + 1L);
- rDest[nDestCount] = rSource;
- }
- }
-
OUString idToString(sal_uInt32 nId)
{
switch( nId )
diff --git a/drawinglayer/source/primitive3d/baseprimitive3d.cxx b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
index 1998a74deee2..460883a13955 100644
--- a/drawinglayer/source/primitive3d/baseprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
@@ -184,38 +184,6 @@ namespace drawinglayer
return (pA->operator==(*pB));
}
- bool arePrimitive3DSequencesEqual(const Primitive3DSequence& rA, const Primitive3DSequence& rB)
- {
- const bool bAHasElements(rA.hasElements());
-
- if(bAHasElements != rB.hasElements())
- {
- return false;
- }
-
- if(!bAHasElements)
- {
- return true;
- }
-
- const sal_Int32 nCount(rA.getLength());
-
- if(nCount != rB.getLength())
- {
- return false;
- }
-
- for(sal_Int32 a(0L); a < nCount; a++)
- {
- if(!arePrimitive3DReferencesEqual(rA[a], rB[a]))
- {
- return false;
- }
- }
-
- return true;
- }
-
bool Primitive3DContainer::operator==(const Primitive3DContainer& rB) const
{
const bool bAHasElements(!empty());
@@ -263,17 +231,6 @@ namespace drawinglayer
}
}
- // concatenate single Primitive3D
- void appendPrimitive3DReferenceToPrimitive3DSequence(Primitive3DSequence& rDest, const Primitive3DReference& rSource)
- {
- if(rSource.is())
- {
- const sal_Int32 nDestCount(rDest.getLength());
- rDest.realloc(nDestCount + 1L);
- rDest[nDestCount] = rSource;
- }
- }
-
} // end of namespace primitive3d
} // end of namespace drawinglayer