diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-02-01 20:17:13 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-01 23:51:05 +0100 |
commit | 4845155e0126571e4176819c5f27b76160146ce0 (patch) | |
tree | dceff32b38e6aa9e43b6f0d746844ab754f661f8 | |
parent | 02caf16fc7d0455a235341966db89c77cbf1da0d (diff) |
UniqueIndexImpl::size() is unneeded
Change-Id: I36c4d80ecf3ba3c88c98f5ad0a3fc1728332b25b
-rw-r--r-- | include/tools/unqidx.hxx | 2 | ||||
-rw-r--r-- | tools/source/memtools/unqidx.cxx | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx index 47da311ea13b..03a30c6fe0f0 100644 --- a/include/tools/unqidx.hxx +++ b/include/tools/unqidx.hxx @@ -38,8 +38,6 @@ public: : maMap(), nStartIndex(_nStartIndex), nUniqIndex(_nStartIndex), nCount(0) {} - size_t size() const { return maMap.size(); } - sal_uIntPtr Insert( void* p ); // insert value with key, replacing existing entry if necessary void* Remove( sal_uIntPtr aIndex ); diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 38b9cc96ee00..8d7ed1ce399c 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -49,7 +49,7 @@ void* UniqueIndexImpl::Remove( sal_uIntPtr nIndex ) { // Check for valid index if ( (nIndex >= nStartIndex) && - (nIndex < (size() + nStartIndex)) ) + (nIndex < (maMap.size() + nStartIndex)) ) { // insert index as empty entry, and reduce indexcount, // if this entry was used @@ -69,7 +69,7 @@ void* UniqueIndexImpl::Get( sal_uIntPtr nIndex ) const { // check for valid index if ( (nIndex >= nStartIndex) && - (nIndex < (size() + nStartIndex)) ) + (nIndex < (maMap.size() + nStartIndex)) ) { std::map<sal_uInt32, void*>::const_iterator it = maMap.find( nIndex - nStartIndex ); if( it != maMap.end() ) |