diff options
-rw-r--r-- | svl/inc/svl/listeneriter.hxx | 7 | ||||
-rw-r--r-- | svl/source/notify/listeneriter.cxx | 74 | ||||
-rwxr-xr-x | unusedcode.easy | 5 |
3 files changed, 0 insertions, 86 deletions
diff --git a/svl/inc/svl/listeneriter.hxx b/svl/inc/svl/listeneriter.hxx index 0dcdec811250..5959bb12499e 100644 --- a/svl/inc/svl/listeneriter.hxx +++ b/svl/inc/svl/listeneriter.hxx @@ -48,7 +48,6 @@ class SVL_DLLPUBLIC SvtListenerIter // at the same time. static SvtListenerIter *pListenerIters; SvtListenerIter *pNxtIter; - TypeId aSrchId; // fuer First/Next - suche diesen Type SVL_DLLPRIVATE static void RemoveListener( SvtListenerBase& rDel, SvtListenerBase* pNext ); @@ -61,18 +60,12 @@ public: SvtBroadcaster& GetBroadcaster() { return rRoot; } SvtListener* GoNext(); // to the next - SvtListener* GoPrev(); // to the previous SvtListener* GoStart(); // to the start of the list - SvtListener* GoEnd(); // to the end of the list - SvtListener* GoRoot(); // to the root SvtListener* GetCurr() const; // returns the current int IsChanged() const { return pDelNext != pAkt; } - - SvtListener* First( TypeId nType ); - SvtListener* Next(); }; diff --git a/svl/source/notify/listeneriter.cxx b/svl/source/notify/listeneriter.cxx index 846189d4b854..edce9e911eb0 100644 --- a/svl/source/notify/listeneriter.cxx +++ b/svl/source/notify/listeneriter.cxx @@ -96,18 +96,6 @@ SvtListener* SvtListenerIter::GoNext() return pAkt ? pAkt->GetListener() : 0; } - -SvtListener* SvtListenerIter::GoPrev() -{ - if( pDelNext == pAkt ) - pAkt = pAkt->GetLeft(); - else - pAkt = pDelNext->GetLeft(); - pDelNext = pAkt; - return pAkt ? pAkt->GetListener() : 0; -} - - SvtListener* SvtListenerIter::GoStart() // zum Anfang des Baums { pAkt = rRoot.pRoot; @@ -118,68 +106,6 @@ SvtListener* SvtListenerIter::GoStart() // zum Anfang des Baums return pAkt ? pAkt->GetListener() : 0; } - -SvtListener* SvtListenerIter::GoEnd() // zum End des Baums -{ - pAkt = pDelNext; - if( !pAkt ) - pAkt = rRoot.pRoot; - if( pAkt ) - while( pAkt->GetRight() ) - pAkt = pAkt->GetRight(); - pDelNext = pAkt; - return pAkt ? pAkt->GetListener() : 0; -} - - - -SvtListener* SvtListenerIter::First( TypeId nType ) -{ - aSrchId = nType; - GoStart(); - if( pAkt ) - do { - if( pAkt->GetListener()->IsA( aSrchId ) ) - break; - - if( pDelNext == pAkt ) - { - pAkt = pAkt->GetRight(); - pDelNext = pAkt; - } - else - pAkt = pDelNext; - - } while( pAkt ); - return pAkt ? pAkt->GetListener() : 0; -} - - -SvtListener* SvtListenerIter::Next() -{ - do { - // erstmal zum naechsten - if( pDelNext == pAkt ) - { - pAkt = pAkt->GetRight(); - pDelNext = pAkt; - } - else - pAkt = pDelNext; - - if( pAkt && pAkt->GetListener()->IsA( aSrchId ) ) - break; - } while( pAkt ); - return pAkt ? pAkt->GetListener() : 0; -} - - -SvtListener* SvtListenerIter::GoRoot() // wieder ab Root anfangen -{ - pDelNext = pAkt = rRoot.pRoot; - return pAkt ? pAkt->GetListener() : 0; -} - SvtListener* SvtListenerIter::GetCurr() const // returns the current { return pDelNext ? pDelNext->GetListener() : 0; diff --git a/unusedcode.easy b/unusedcode.easy index fc8647531f81..b982690c3f5e 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -252,11 +252,6 @@ SvpSalInstance::CancelEvent(SalFrame const*, void*, unsigned short) SvtBroadcaster::Forward(SvtBroadcaster&, SfxHint const&) SvtIconChoiceCtrl::SvtIconChoiceCtrl(Window*, ResId const&) SvtIconWindow_Impl::GetSelectedIconText() const -SvtListenerIter::First(void* (*)()) -SvtListenerIter::GoEnd() -SvtListenerIter::GoPrev() -SvtListenerIter::GoRoot() -SvtListenerIter::Next() SvtScriptedTextHelper::GetText() const SvtScriptedTextHelper::GetTextHeight() const SvtScriptedTextHelper::GetTextWidth() const |