diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-05 10:05:50 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-05 11:32:12 +0100 |
commit | f04999cc84152ef9fc216d339da4b5fc2c52e256 (patch) | |
tree | 02ccb02eb1b77b773c768e316616aaffe509e060 /tools | |
parent | ae35981823114d51376bf86bf1db665db62482c3 (diff) |
Delete obsolete/unuseful comments
Change-Id: Iadec409743e144a97c4468052dc0a04b91ca9619
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/memtools/unqidx.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 7d7ac85314ac..ecc6232f882b 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -25,7 +25,6 @@ UniqueIndexImpl::Index UniqueIndexImpl::Insert( void* p ) if ( !p ) return IndexNotFound; - // Expend array if full const Index nTmp = static_cast<Index>(maMap.size()) + 1; // Avoid overflow of UniqIndex upon deletion @@ -35,7 +34,6 @@ UniqueIndexImpl::Index UniqueIndexImpl::Insert( void* p ) while ( maMap.find( nUniqIndex ) != maMap.end() ) nUniqIndex = (nUniqIndex+1) % nTmp; - // Insert object to array maMap[ nUniqIndex ] = p; nUniqIndex++; @@ -47,8 +45,6 @@ void* UniqueIndexImpl::Remove( Index nIndex ) // Check for valid index if ( nIndex >= nStartIndex ) { - // insert index as empty entry, and reduce indexcount, - // if this entry was used std::map<Index, void*>::iterator it = maMap.find( nIndex - nStartIndex ); if( it != maMap.end() ) { |