diff options
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r-- | sw/inc/calbck.hxx | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index f8596caddc27..e0f71b8e9229 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -347,29 +347,6 @@ public: m_pCurrent = nullptr; return Next(); } - TElementType* Last() - { - if(!m_pPosition) - m_pPosition = m_rRoot.m_pWriterListeners; - if(!m_pPosition) - return static_cast<TElementType*>(Sync()); - while(GetRightOfPos()) - m_pPosition = GetRightOfPos(); - sw::WriterListener * pCurrent(m_pPosition); - if (eMode == sw::IteratorMode::UnwrapMulti) - { - if (auto const pLE = dynamic_cast<sw::ListenerEntry const*>(pCurrent)) - { - pCurrent = pLE->m_pToTell; - } - } - if (dynamic_cast<const TElementType *>(pCurrent) != nullptr) - { - Sync(); - return static_cast<TElementType*>(pCurrent); - } - return Previous(); - } TElementType* Next() { if(!IsChanged()) @@ -395,30 +372,6 @@ public: Sync(); return static_cast<TElementType*>(pCurrent); } - TElementType* Previous() - { - m_pPosition = GetLeftOfPos(); - sw::WriterListener *pCurrent(m_pPosition); - while (m_pPosition) - { - if (eMode == sw::IteratorMode::UnwrapMulti) - { - if (auto const pLE = dynamic_cast<sw::ListenerEntry const*>(m_pPosition)) - { - pCurrent = pLE->m_pToTell; - } - } - if (dynamic_cast<const TElementType *>(pCurrent) == nullptr) - { - m_pPosition = GetLeftOfPos(); - pCurrent = m_pPosition; - } - else - break; - } - Sync(); - return static_cast<TElementType*>(pCurrent); - } using sw::ClientIteratorBase::IsChanged; }; |