diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 14:58:41 +0800 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 14:11:26 +0400 |
commit | cae6ca15d6327a7ff0471c7b15dbefcdc86b0e8c (patch) | |
tree | 9ec500783330d55304e176efc660b1998e3cf0ce /svl | |
parent | cdf0c78990a149a5deab8f9e68512a8646ca1855 (diff) |
Remove unused code
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/listeneriter.hxx | 7 | ||||
-rw-r--r-- | svl/source/notify/listeneriter.cxx | 74 |
2 files changed, 0 insertions, 81 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; |