Kaydet (Commit) 4845155e authored tarafından Matteo Casalin's avatar Matteo Casalin

UniqueIndexImpl::size() is unneeded

Change-Id: I36c4d80ecf3ba3c88c98f5ad0a3fc1728332b25b
üst 02caf16f
......@@ -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 );
......
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment