From 2fffaf6f05d829e345ad8b391646a6e8df9a9a26 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Jul 2017 11:03:15 +0200 Subject: loplugin:unusedmethods Change-Id: Ia874baf21257e5fe41e104211068a2bcc50446eb Reviewed-on: https://gerrit.libreoffice.org/40391 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- tools/source/memtools/unqidx.cxx | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'tools') diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index e42498867c84..06cda449a9c5 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -64,33 +64,6 @@ void* UniqueIndexImpl::Get( Index nIndex ) const return nullptr; } -UniqueIndexImpl::Index UniqueIndexImpl::FirstIndex() const -{ - if ( maMap.empty() ) - return IndexNotFound; - - return maMap.begin()->first; -} - -UniqueIndexImpl::Index UniqueIndexImpl::LastIndex() const -{ - if ( maMap.empty() ) - return IndexNotFound; - - return maMap.rbegin()->first; -} - -UniqueIndexImpl::Index UniqueIndexImpl::NextIndex(Index aIndex) const -{ - std::map::const_iterator it = maMap.find( aIndex ); - if ( it == maMap.end() ) - return IndexNotFound; - ++it; - if ( it == maMap.end() ) - return IndexNotFound; - return it->first; -} - UniqueIndexImpl::Index UniqueIndexImpl::GetIndexOf(void const * p) const { for( std::map::const_iterator it = maMap.begin(); it != maMap.end(); ++it ) -- cgit