From b64fbcf9655885684bc39b64f66ec9f3b18baf6a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Oct 2017 20:34:35 +0200 Subject: remove unused ScCompressedArray constructor Change-Id: Ida4d8abe50885d10288169024b597fa946d1c26b Reviewed-on: https://gerrit.libreoffice.org/43438 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/inc/compressedarray.hxx | 8 -------- sc/source/core/data/compressedarray.cxx | 25 ------------------------- 2 files changed, 33 deletions(-) (limited to 'sc') 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( nMaxAccessP, rValue ) {} - ScBitMaskCompressedArray( A nMaxAccessP, - const D* pDataArray, size_t nDataCount ) - : ScCompressedArray( 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 @@ -36,31 +36,6 @@ ScCompressedArray::ScCompressedArray( A nMaxAccessP, const D& rValue ) pData[0].nEnd = nMaxAccess; } -template< typename A, typename D > -ScCompressedArray::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 ScCompressedArray::~ScCompressedArray() { -- cgit