summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/unqidx.hxx2
-rw-r--r--tools/source/memtools/unqidx.cxx4
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() )