[Libreoffice-commits] core.git: sc/inc sc/source

Noel Grandin noelgrandin at gmail.com
Tue Oct 17 07:07:52 UTC 2017


 sc/inc/compressedarray.hxx              |    8 --------
 sc/source/core/data/compressedarray.cxx |   25 -------------------------
 2 files changed, 33 deletions(-)

New commits:
commit b64fbcf9655885684bc39b64f66ec9f3b18baf6a
Author: Noel Grandin <noelgrandin at gmail.com>
Date:   Sun Oct 15 20:34:35 2017 +0200

    remove unused ScCompressedArray constructor
    
    Change-Id: Ida4d8abe50885d10288169024b597fa946d1c26b
    Reviewed-on: https://gerrit.libreoffice.org/43438
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx
index 93cbac83172d..4f65b58e88f7 100644
--- a/sc/inc/compressedarray.hxx
+++ b/sc/inc/compressedarray.hxx
@@ -69,9 +69,6 @@ public:
     /** Construct with nMaxAccess=MAXROW, for example. */
                                 ScCompressedArray( A nMaxAccess,
                                         const D& rValue );
-    /** Construct from a plain array of D */
-                                ScCompressedArray( A nMaxAccess,
-                                        const D* pDataArray, size_t nDataCount );
     virtual                     ~ScCompressedArray();
     void                        Resize( size_t nNewSize );
     void                        Reset( const D& rValue );
@@ -175,11 +172,6 @@ public:
                                         const D& rValue )
                                     : ScCompressedArray<A,D>( nMaxAccessP, rValue )
                                     {}
-                                ScBitMaskCompressedArray( A nMaxAccessP,
-                                        const D* pDataArray, size_t nDataCount )
-                                    : ScCompressedArray<A,D>( nMaxAccessP,
-                                            pDataArray, nDataCount)
-                                    {}
     void                        AndValue( A nPos, const D& rValueToAnd );
     void                        OrValue( A nPos, const D& rValueToOr );
     void                        AndValue( A nStart, A nEnd, const D& rValueToAnd );
diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx
index 6d4c67fa0e61..91e64d4ceae6 100644
--- a/sc/source/core/data/compressedarray.cxx
+++ b/sc/source/core/data/compressedarray.cxx
@@ -37,31 +37,6 @@ ScCompressedArray<A,D>::ScCompressedArray( A nMaxAccessP, const D& rValue )
 }
 
 template< typename A, typename D >
-ScCompressedArray<A,D>::ScCompressedArray( A nMaxAccessP, const D* pDataArray,
-        size_t nDataCount )
-    : nCount(0)
-    , nLimit( nDataCount)
-    , pData( new DataEntry[nDataCount])
-    , nMaxAccess( nMaxAccessP)
-{
-    D aValue = pDataArray[0];
-    for (size_t j=0; j<nDataCount; ++j)
-    {
-        if (!(aValue == pDataArray[j]))
-        {
-            pData[nCount].aValue = aValue;
-            pData[nCount].nEnd = j-1;
-            ++nCount;
-            aValue = pDataArray[j];
-        }
-    }
-    pData[nCount].aValue = aValue;
-    pData[nCount].nEnd = nMaxAccess;
-    ++nCount;
-    Resize( nCount);
-}
-
-template< typename A, typename D >
 ScCompressedArray<A,D>::~ScCompressedArray()
 {
     delete[] pData;


More information about the Libreoffice-commits mailing list