diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-10-15 20:34:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-17 09:07:26 +0200 |
commit | b64fbcf9655885684bc39b64f66ec9f3b18baf6a (patch) | |
tree | 5fb73a293f993845b0ade3c42a0135a94eeea449 /sc | |
parent | acfdfdf28a98b5841e4f8f669d9b6efe195926d9 (diff) |
remove unused ScCompressedArray constructor
Change-Id: Ida4d8abe50885d10288169024b597fa946d1c26b
Reviewed-on: https://gerrit.libreoffice.org/43438
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/compressedarray.hxx | 8 | ||||
-rw-r--r-- | sc/source/core/data/compressedarray.cxx | 25 |
2 files changed, 0 insertions, 33 deletions
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; |