From 20de64b70e885b221317cf2a021829bc575d269c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 9 Sep 2011 09:13:49 +0100 Subject: callcatcher: various unused code --- svl/inc/svl/whiter.hxx | 3 --- svl/source/items/whiter.cxx | 34 ---------------------------------- 2 files changed, 37 deletions(-) (limited to 'svl') diff --git a/svl/inc/svl/whiter.hxx b/svl/inc/svl/whiter.hxx index bb3936eb6961..37c7301b1fae 100644 --- a/svl/inc/svl/whiter.hxx +++ b/svl/inc/svl/whiter.hxx @@ -52,10 +52,7 @@ public: sal_uInt16 GetCurWhich() const { return *pRanges + nOfst; } sal_uInt16 NextWhich(); - sal_uInt16 PrevWhich(); - sal_uInt16 FirstWhich(); - sal_uInt16 LastWhich(); }; #endif diff --git a/svl/source/items/whiter.cxx b/svl/source/items/whiter.cxx index b9fb9ca46330..8ff87404b7a1 100644 --- a/svl/source/items/whiter.cxx +++ b/svl/source/items/whiter.cxx @@ -76,26 +76,6 @@ sal_uInt16 SfxWhichIter::NextWhich() // ----------------------------------------------------------------------- -sal_uInt16 SfxWhichIter::PrevWhich() -{ - DBG_CHKTHIS(SfxWhichIter, 0); - while ( pRanges != pStart || 0 != nOfst ) - { - if(nOfst) - --nOfst; - else { - pRanges -= 2; - nOfst = *(pRanges+1) - (*pRanges); - } - sal_uInt16 nWhich = *pRanges + nOfst; - if ( nWhich >= nFrom && nWhich <= nTo ) - return nWhich; - } - return 0; -} - -// ----------------------------------------------------------------------- - sal_uInt16 SfxWhichIter::FirstWhich() { DBG_CHKTHIS(SfxWhichIter, 0); @@ -106,18 +86,4 @@ sal_uInt16 SfxWhichIter::FirstWhich() return NextWhich(); } -// ----------------------------------------------------------------------- - -sal_uInt16 SfxWhichIter::LastWhich() -{ - DBG_CHKTHIS(SfxWhichIter, 0); - while(*pRanges) - ++pRanges; - nOfst = 0; - sal_uInt16 nWhich = *(pRanges-1); - if ( nWhich >= nFrom && nWhich <= nTo ) - return nWhich; - return PrevWhich(); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit