diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-08 13:55:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-09 14:17:08 +0200 |
commit | f4fb14ed796cec7a02f3a06a6556997ae415e79d (patch) | |
tree | f4d1cd6d31d8b9530786ee90ce9034e5e4d950c6 /sc | |
parent | d84bf553afa510e5c674817fa480ac0af62e4945 (diff) |
loplugin:unusedmethods
Change-Id: I0308ddd467ab6e283c0503f98885a248eb28290c
Reviewed-on: https://gerrit.libreoffice.org/58738
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/compiler.hxx | 2 | ||||
-rw-r--r-- | sc/inc/compressedarray.hxx | 1 | ||||
-rw-r--r-- | sc/inc/validat.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/data/compressedarray.cxx | 12 | ||||
-rw-r--r-- | sc/source/core/data/validat.cxx | 5 | ||||
-rw-r--r-- | sc/source/core/tool/token.cxx | 10 |
6 files changed, 0 insertions, 33 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 394f532b57fc..cd7fd4895aae 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -171,8 +171,6 @@ public: bool IsValidReference() const; formula::FormulaToken* CreateToken() const; // create typified token - - static sal_Int32 GetStrLen( const sal_Unicode* pStr ); // as long as a "string" is an array }; class SC_DLLPUBLIC ScCompiler : public formula::FormulaCompiler diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx index 3a112721adbd..d514aaed475c 100644 --- a/sc/inc/compressedarray.hxx +++ b/sc/inc/compressedarray.hxx @@ -70,7 +70,6 @@ public: ScCompressedArray( A nMaxAccess, const D& rValue ); virtual ~ScCompressedArray(); - void Resize( size_t nNewSize ); void Reset( const D& rValue ); void SetValue( A nPos, const D& rValue ); void SetValue( A nStart, A nEnd, const D& rValue ); diff --git a/sc/inc/validat.hxx b/sc/inc/validat.hxx index 945cd9e6bc0e..64e0d2520feb 100644 --- a/sc/inc/validat.hxx +++ b/sc/inc/validat.hxx @@ -222,9 +222,6 @@ public: void UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt ); void UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt ); void UpdateMoveTab( sc::RefUpdateMoveTabContext& rCxt ); - - void clear(); - }; #endif diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx index d07de64f5325..fd3867c3e863 100644 --- a/sc/source/core/data/compressedarray.cxx +++ b/sc/source/core/data/compressedarray.cxx @@ -42,18 +42,6 @@ ScCompressedArray<A,D>::~ScCompressedArray() } template< typename A, typename D > -void ScCompressedArray<A,D>::Resize( size_t nNewLimit) -{ - if ((nCount <= nNewLimit && nNewLimit < nLimit) || nLimit < nNewLimit) - { - nLimit = nNewLimit; - std::unique_ptr<DataEntry[]> pNewData(new DataEntry[nLimit]); - memcpy( pNewData.get(), pData.get(), nCount*sizeof(DataEntry)); - pData = std::move(pNewData); - } -} - -template< typename A, typename D > size_t ScCompressedArray<A,D>::Search( A nAccess ) const { if (nAccess == 0) diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx index 9736d74ac00a..4b4bf814fd21 100644 --- a/sc/source/core/data/validat.cxx +++ b/sc/source/core/data/validat.cxx @@ -1047,9 +1047,4 @@ ScValidationDataList::const_iterator ScValidationDataList::end() const return maData.end(); } -void ScValidationDataList::clear() -{ - maData.clear(); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 5a8325959693..232c96f5f63e 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -216,16 +216,6 @@ IMPL_FIXEDMEMPOOL_NEWDEL( ScDoubleRefToken ) // --- class ScRawToken ----------------------------------------------------- -sal_Int32 ScRawToken::GetStrLen( const sal_Unicode* pStr ) -{ - if ( !pStr ) - return 0; - const sal_Unicode* p = pStr; - while ( *p ) - p++; - return sal::static_int_cast<sal_Int32>( p - pStr ); -} - void ScRawToken::SetOpCode( OpCode e ) { eOp = e; |