diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-07 16:28:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-27 08:20:43 +0000 |
commit | 644487a1152c7586a7f20c7f372572a71d8494d5 (patch) | |
tree | 683cdbd755ec1660e75f930e5be4cd6867e3e734 /tools | |
parent | 1b4dff2c371d31c99f34324c3f6f31888bdc34d7 (diff) |
loplugin:unusedmethods
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861
Reviewed-on: https://gerrit.libreoffice.org/19231
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/memtools/unqidx.cxx | 17 | ||||
-rw-r--r-- | tools/source/ref/pstm.cxx | 35 |
2 files changed, 0 insertions, 52 deletions
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 726c96c07b03..4e4a87344a38 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -45,23 +45,6 @@ sal_uIntPtr UniqueIndexImpl::Insert( void* p ) return ( nUniqIndex + nStartIndex - 1 ); } -void UniqueIndexImpl::Insert( sal_uIntPtr nIndex, void* p ) -{ - // NULL-Pointer not allowed - if ( !p ) - return; - - sal_uIntPtr nContIndex = nIndex - nStartIndex; - - bool bFound = maMap.find( nContIndex ) != maMap.end(); - - // Insert object to array - maMap[ nContIndex ] = p; - - if( !bFound ) - nCount++; -} - void* UniqueIndexImpl::Remove( sal_uIntPtr nIndex ) { // Check for valid index diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 06ad8e55571d..89a405c13477 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -572,39 +572,4 @@ SvPersistStream& operator >> return rStm.ReadPointer( rpObj ); } -SvStream& operator >> -( - SvStream & rStm, - SvPersistStream & rThis -) -{ - SvStream * pOldStm = rThis.GetStream(); - rThis.SetStream( &rStm ); - - sal_uInt8 nVers; - rThis.ReadUChar( nVers ); // Version - if( 0 == nVers ) - { - sal_uInt32 nCount = 0; - rThis.ReadUInt32( nCount ); - for( sal_uInt32 i = 0; i < nCount; i++ ) - { - SvPersistBase * pEle; - // read, but don't insert into table - sal_uIntPtr nId = rThis.ReadObj( pEle, false ); - if( rThis.GetError() ) - break; - - // Id of object is never modified - rThis.aPUIdx.Insert( nId, pEle ); - rThis.aPTable[ pEle ] = nId; - } - } - else - rThis.SetError( SVSTREAM_FILEFORMAT_ERROR ); - - rThis.SetStream( pOldStm ); - return rStm; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |