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>
This commit is contained in:
Noel Grandin
2017-10-15 20:34:35 +02:00
committed by Noel Grandin
parent acfdfdf28a
commit b64fbcf965
2 changed files with 0 additions and 33 deletions

View File

@@ -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 );

View File

@@ -36,31 +36,6 @@ ScCompressedArray<A,D>::ScCompressedArray( A nMaxAccessP, const D& rValue )
pData[0].nEnd = nMaxAccess;
}
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()
{