diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-02 23:16:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-05 10:54:19 +0100 |
commit | af60795f76f04e5a0315eeaa4cb9c5a90f4ae90c (patch) | |
tree | 529f6d32a19fc394afec567ad246dfb3f5522538 /tools | |
parent | 2e28244ad3cf526b99b1e555526b26bf89c5ce8d (diff) |
callcatcher: some more unused code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/unqidx.hxx | 4 | ||||
-rw-r--r-- | tools/source/memtools/unqidx.cxx | 22 |
2 files changed, 0 insertions, 26 deletions
diff --git a/tools/inc/tools/unqidx.hxx b/tools/inc/tools/unqidx.hxx index 74aa57d54d1a..715341c5dd34 100644 --- a/tools/inc/tools/unqidx.hxx +++ b/tools/inc/tools/unqidx.hxx @@ -57,7 +57,6 @@ public: sal_uIntPtr Insert( sal_uIntPtr nIndex, void* p ); sal_uIntPtr Insert( void* p ); void* Remove( sal_uIntPtr nIndex ); - void* Replace( sal_uIntPtr nIndex, void* p ); void* Get( sal_uIntPtr nIndex ) const; void Clear(); @@ -119,9 +118,6 @@ public: \ { return UniqueIndex::Insert( (void*)p ); } \ Type Remove( sal_uIntPtr nIndex ) \ { return (Type)UniqueIndex::Remove( nIndex ); } \ - Type Replace( sal_uIntPtr nIndex, Type p ) \ - { return (Type)UniqueIndex::Replace( nIndex, \ - (void*)p ); } \ Type Get( sal_uIntPtr nIndex ) const \ { return (Type)UniqueIndex::Get( nIndex ); } \ \ diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 9195c820dc6c..a60777d1b3f6 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -145,28 +145,6 @@ void* UniqueIndex::Remove( sal_uIntPtr nIndex ) /************************************************************************* |* -|* UniqueIndex::Replace() -|* -*************************************************************************/ - -void* UniqueIndex::Replace( sal_uIntPtr nIndex, void* p ) -{ - // NULL-Pointer ist nicht erlaubt - if ( !p ) - return NULL; - - // Ist Index zulaessig - if ( IsIndexValid( nIndex ) ) - { - // Index-Eintrag ersetzen und alten zurueckgeben - return Container::Replace( p, nIndex-nStartIndex ); - } - else - return NULL; -} - -/************************************************************************* -|* |* UniqueIndex::Get() |* *************************************************************************/ |