[Libreoffice-commits] core.git: drawinglayer/source

Stephan Bergmann sbergman at redhat.com
Tue Dec 15 04:14:32 PST 2015


 drawinglayer/source/primitive3d/baseprimitive3d.cxx |   34 --------------------
 1 file changed, 34 deletions(-)

New commits:
commit 0a8e78a21e59ea72739688cf8dab7e3895507139
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Dec 15 13:14:02 2015 +0100

    loplugin:unreffun
    
    Change-Id: Ic741021b18b4064cb74786fc3d40fadf8eb85ab7

diff --git a/drawinglayer/source/primitive3d/baseprimitive3d.cxx b/drawinglayer/source/primitive3d/baseprimitive3d.cxx
index 20c4975..1998a74 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());


More information about the Libreoffice-commits mailing list