From 0a8e78a21e59ea72739688cf8dab7e3895507139 Mon Sep 17 00:00:00 2001
From: Stephan Bergmann <sbergman@redhat.com>
Date: Tue, 15 Dec 2015 13:14:02 +0100
Subject: loplugin:unreffun

Change-Id: Ic741021b18b4064cb74786fc3d40fadf8eb85ab7
---
 .../source/primitive3d/baseprimitive3d.cxx         | 34 ----------------------
 1 file changed, 34 deletions(-)

(limited to 'drawinglayer')

diff --git a/drawinglayer/source/primitive3d/baseprimitive3d.cxx b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
index 20c49750300e..1998a74deee2 100644
--- a/drawinglayer/source/primitive3d/baseprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
@@ -248,40 +248,6 @@ namespace drawinglayer
             return true;
         }
 
-        // concatenate sequence
-        void appendPrimitive3DContainerToPrimitive3DSequence(Primitive3DSequence& rDest, const Primitive3DSequence& 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 Primitive3DContainer::append(const Primitive3DContainer& rSource)
         {
             insert(end(), rSource.begin(), rSource.end());
-- 
cgit