diff options
-rw-r--r-- | sw/inc/calbck.hxx | 4 | ||||
-rw-r--r-- | sw/inc/switerator.hxx | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 4c76fe9fd992..7fc2e6d574be 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -260,15 +260,11 @@ class SwClientIter SAL_FINAL : public sw::Ring<SwClientIter> SwClient* GetLeftOfPos() { return static_cast<SwClient*>(m_pPosition->m_pLeft); } SwClient* GetRighOfPos() { return static_cast<SwClient*>(m_pPosition->m_pRight); } - // iterator can be limited to return only SwClient objects of a certain type - TypeId m_aSearchType; - static SW_DLLPUBLIC SwClientIter* our_pClientIters; public: SwClientIter( const SwModify& rModify ) : m_rRoot(rModify) - , m_aSearchType(nullptr) { MoveTo(our_pClientIters); our_pClientIters = this; diff --git a/sw/inc/switerator.hxx b/sw/inc/switerator.hxx index 499c6e18e3bf..693393efaa9d 100644 --- a/sw/inc/switerator.hxx +++ b/sw/inc/switerator.hxx @@ -30,7 +30,6 @@ public: SwIterator( const TSource& rSrc ) : aClientIter(rSrc) { assert(TElementType::IsOf( TYPE(SwClient) )); } TElementType* First() { - aClientIter.m_aSearchType = TYPE(TElementType); aClientIter.GoStart(); if(!aClientIter.m_pPosition) return nullptr; @@ -39,7 +38,6 @@ public: } TElementType* Last() { - aClientIter.m_aSearchType = TYPE(TElementType); aClientIter.GoEnd(); if(!aClientIter.m_pPosition) return nullptr; |