From 70eb5c15e89409c22dbcdd7c49fa6271cc535d6b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 25 Mar 2012 00:43:57 +0000 Subject: callcatcher: shiny unused method reduction from to-stl conversions --- tools/inc/tools/table.hxx | 3 --- tools/source/memtools/table.cxx | 15 --------------- unusedcode.easy | 18 ++---------------- 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/tools/inc/tools/table.hxx b/tools/inc/tools/table.hxx index ec0c82cf663b..ec6927e9be93 100644 --- a/tools/inc/tools/table.hxx +++ b/tools/inc/tools/table.hxx @@ -68,7 +68,6 @@ public: sal_uIntPtr SearchKey( sal_uIntPtr nKey, sal_uIntPtr* pPos = NULL ) const; void* Seek( sal_uIntPtr nKey ); - void* Seek( void* p ); void* First(); void* Last(); void* Next(); @@ -129,8 +128,6 @@ public: \ \ Type Seek( sal_uIntPtr nKey ) \ { return (Type)Table::Seek( nKey ); } \ - Type Seek( Type p ) \ - { return (Type)Table::Seek( (void*)p ); } \ Type First() { return (Type)Table::First(); } \ Type Last() { return (Type)Table::Last(); } \ Type Next() { return (Type)Table::Next(); } \ diff --git a/tools/source/memtools/table.cxx b/tools/source/memtools/table.cxx index 3586c2769cec..9a55fb7add66 100644 --- a/tools/source/memtools/table.cxx +++ b/tools/source/memtools/table.cxx @@ -294,21 +294,6 @@ void* Table::Seek( sal_uIntPtr nKey ) return NULL; } -// ----------------------------------------------------------------------- - -void* Table::Seek( void* p ) -{ - sal_uIntPtr nKey = GetKey( p ); - - // Ist Key vorhanden, dann als aktuellen Eintrag setzen - if ( nKey != TABLE_ENTRY_NOTFOUND ) - return Seek( nKey ); - else - return NULL; -} - -// ----------------------------------------------------------------------- - void* Table::First() { // Testen, ob ein Eintrag vorhanden ist diff --git a/unusedcode.easy b/unusedcode.easy index 8fcb6b32e76a..8f2dd536a89c 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -74,6 +74,7 @@ ScDBCollection::AnonDBs::size() const ScDPItemData::ScDPItemData(rtl::OUString const*) ScDPItemData::SetErrorString(rtl::OUString const&) ScDPLabelData::ScDPLabelData(rtl::OUString const&, short, bool) +ScDPObject::HasGroups() const ScDocRowHeightUpdater::TabRanges::TabRanges() ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short) ScHTMLColOffset::Insert(unsigned long const&, unsigned short&) @@ -236,10 +237,6 @@ SwInsDBColumns::Insert(SwInsDBColumn* const*, unsigned short) SwInsDBColumns::Insert(SwInsDBColumns const*, unsigned short, unsigned short) SwInsDBColumns::Remove(SwInsDBColumn* const&, unsigned short) SwInsDBColumns::Remove(unsigned short, unsigned short) -SwLRects::Insert(SwLRects const*, unsigned short, unsigned short, unsigned short) -SwLRects::Replace(SwLineRect const&, unsigned short) -SwLRects::Replace(SwLineRect const*, unsigned short, unsigned short) -SwLRects::_ForEach(unsigned short, unsigned short, unsigned char (*)(SwLineRect const&, void*), void*) SwMailMergeChildWindow::GetChildWindowId() SwOutlineNodes::Insert(SwNode* const&, unsigned short&) SwOutlineNodes::Insert(SwNode* const*, unsigned short) @@ -307,6 +304,7 @@ SwpHtStart::Insert(SwTxtAttr const**, unsigned short) SwpHtStart::Insert(SwpHtStart const*, unsigned short, unsigned short) SwpHtStart::Remove(SwTxtAttr const*&, unsigned short) SystemChildWindow::SystemChildWindow(Window*, ResId const&) +Table::Seek(void*) TempFile::IsValid() const TextEngine::GetLeftMargin() const TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference&) @@ -381,11 +379,6 @@ _MergePos::Remove(_CmpLPt const&, unsigned short) _MergePos_SAR::Replace(_CmpLPt const&, unsigned short) _MergePos_SAR::Replace(_CmpLPt const*, unsigned short, unsigned short) _MergePos_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_CmpLPt const&, void*), void*) -_SaveFlyArr::Insert(_SaveFlyArr const*, unsigned short, unsigned short, unsigned short) -_SaveFlyArr::Remove(unsigned short, unsigned short) -_SaveFlyArr::Replace(_SaveFly const&, unsigned short) -_SaveFlyArr::Replace(_SaveFly const*, unsigned short, unsigned short) -_SaveFlyArr::_ForEach(unsigned short, unsigned short, unsigned char (*)(_SaveFly const&, void*), void*) _SetGetExpFlds::Insert(_SetGetExpFld* const&, unsigned short&) _SetGetExpFlds::Insert(_SetGetExpFld* const*, unsigned short) _SetGetExpFlds::Insert(_SetGetExpFlds const*, unsigned short, unsigned short) @@ -410,13 +403,6 @@ _SwRedlineTbl::Insert(SwRedline* const*, unsigned short) _SwRedlineTbl::Insert(_SwRedlineTbl const*, unsigned short, unsigned short) _SwRedlineTbl::Remove(SwRedline* const&, unsigned short) _WPXTabStop::_WPXTabStop(double, WPXTabAlignment, unsigned short, unsigned char) -_ZSortFlys::Insert(_ZSortFly const&, unsigned short&) -_ZSortFlys::Insert(_ZSortFly const*, unsigned short) -_ZSortFlys::Insert(_ZSortFlys const*, unsigned short, unsigned short) -_ZSortFlys::Remove(_ZSortFly const&, unsigned short) -_ZSortFlys_SAR::Replace(_ZSortFly const&, unsigned short) -_ZSortFlys_SAR::Replace(_ZSortFly const*, unsigned short, unsigned short) -_ZSortFlys_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(_ZSortFly const&, void*), void*) basebmp::debugDump(boost::shared_ptr const&, std::basic_ostream >&) basegfx::tools::equal(basegfx::B2DPolyPolygon const&, basegfx::B2DPolyPolygon const&, double const&) basegfx::tools::equal(basegfx::B3DPolyPolygon const&, basegfx::B3DPolyPolygon const&, double const&) -- cgit