From 981654f6e0d57c2c6dd1bbf740a6b67941146497 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 1 Oct 2019 00:21:00 +0300 Subject: Drop SfxItemIter::FirstItem It is always used right after the iterator is created, where simple GetCurItem gives the same value without reseting the position. Change-Id: I871dc7989b79e13f06436ef7928692645b5209f6 Reviewed-on: https://gerrit.libreoffice.org/79903 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/svl/itemiter.hxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/svl') diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx index bfcc43715ef5..3d690c98890d 100644 --- a/include/svl/itemiter.hxx +++ b/include/svl/itemiter.hxx @@ -36,11 +36,6 @@ public: ~SfxItemIter(); /// get item, or null if no items - const SfxPoolItem* FirstItem() - { - m_nCurrent = m_nStart; - return m_rSet.m_nCount ? *(m_rSet.m_pItems.get() + m_nCurrent) : nullptr; - } const SfxPoolItem* GetCurItem() const { return m_rSet.m_nCount ? *(m_rSet.m_pItems.get() + m_nCurrent) : nullptr; -- cgit