summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-07-13 13:11:49 +0200
committerThomas Arnhold <thomas@arnhold.org>2011-07-14 08:19:53 +0200
commita5b3ededeeb952f12b478ea5035655bb8eeeb1fe (patch)
tree07efbff8bc2086e58c40ce9f7db2128705f1d02c /tools
parentb6d0d593b65d0b1b8f4611d0eea27a88af68bedf (diff)
callcatcher: remove unused Table::GetUniqueKey
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/table.hxx2
-rw-r--r--tools/source/memtools/table.cxx39
2 files changed, 0 insertions, 41 deletions
diff --git a/tools/inc/tools/table.hxx b/tools/inc/tools/table.hxx
index bfb91fbe7dc6..ec0c82cf663b 100644
--- a/tools/inc/tools/table.hxx
+++ b/tools/inc/tools/table.hxx
@@ -65,7 +65,6 @@ public:
{ return Container::GetObject( (nPos*2)+1 ); }
sal_uIntPtr GetObjectKey( sal_uIntPtr nPos ) const
{ return (sal_uIntPtr)Container::GetObject( nPos*2 ); }
- sal_uIntPtr GetUniqueKey( sal_uIntPtr nStartKey = 1 ) const;
sal_uIntPtr SearchKey( sal_uIntPtr nKey, sal_uIntPtr* pPos = NULL ) const;
void* Seek( sal_uIntPtr nKey );
@@ -102,7 +101,6 @@ public: \
using Table::Count; \
using Table::GetCurKey; \
using Table::GetObjectKey; \
- using Table::GetUniqueKey; \
using Table::SearchKey; \
using Table::IsKeyValid; \
\
diff --git a/tools/source/memtools/table.cxx b/tools/source/memtools/table.cxx
index 75119ba6f142..e9c2239b1c82 100644
--- a/tools/source/memtools/table.cxx
+++ b/tools/source/memtools/table.cxx
@@ -257,45 +257,6 @@ sal_Bool Table::IsKeyValid( sal_uIntPtr nKey ) const
// -----------------------------------------------------------------------
-sal_uIntPtr Table::GetUniqueKey( sal_uIntPtr nStartKey ) const
-{
- DBG_ASSERT( (nStartKey > 1) && (nStartKey < 0xFFFFFFFF),
- "Table::GetUniqueKey() - nStartKey == 0 or nStartKey >= 0xFFFFFFFF" );
-
- if ( !nCount )
- return nStartKey;
-
- sal_uIntPtr nLastKey = (sal_uIntPtr)Container::GetObject( (nCount*2)-2 );
- if ( nLastKey < nStartKey )
- return nStartKey;
- else
- {
- if ( nLastKey < 0xFFFFFFFE )
- return nLastKey+1;
- else
- {
- sal_uIntPtr nPos;
- sal_uIntPtr nTempPos = ImplGetIndex( nStartKey, &nPos );
- if ( nTempPos != TABLE_ENTRY_NOTFOUND )
- nPos = nTempPos;
- nLastKey = (sal_uIntPtr)Container::GetObject( nPos );
- if ( nStartKey < nLastKey )
- return nStartKey;
- while ( nLastKey < 0xFFFFFFFE )
- {
- nPos += 2;
- nLastKey++;
- if ( nLastKey != (sal_uIntPtr)Container::GetObject( nPos ) )
- return nLastKey;
- }
- }
- }
-
- return 0;
-}
-
-// -----------------------------------------------------------------------
-
sal_uIntPtr Table::SearchKey( sal_uIntPtr nKey, sal_uIntPtr* pPos ) const
{
*pPos = 0;