diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-09 09:13:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-09 09:23:10 +0100 |
commit | 20de64b70e885b221317cf2a021829bc575d269c (patch) | |
tree | 82161740041406e05024c1b385fea6cdbabf9093 /svl | |
parent | e54fd4b67db9dde9a36fe2ffd5fb4fde3d490c3b (diff) |
callcatcher: various unused code
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/whiter.hxx | 3 | ||||
-rw-r--r-- | svl/source/items/whiter.cxx | 34 |
2 files changed, 0 insertions, 37 deletions
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: */ |