summaryrefslogtreecommitdiff
path: root/svl/source/items/itemset.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-19 15:17:30 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-20 08:13:51 +0000
commit4ff5a5558472beee85eb1234dcc2aa2ed9000f6c (patch)
treeb2a0a83933064b7a22db0e27c0a3d8b7339053de /svl/source/items/itemset.cxx
parent3179e8f7e6ce550bbe766ed730e68b0374944dd5 (diff)
loplugin:unusedmethods
Change-Id: Ib2dc804f55d1a96ae01f2cf31b7d55956040a72e Reviewed-on: https://gerrit.libreoffice.org/21603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl/source/items/itemset.cxx')
-rw-r--r--svl/source/items/itemset.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 09c5004c2322..809cfa5925bd 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -350,24 +350,6 @@ void SfxItemSet::ClearInvalidItems( bool bHardDefault )
}
}
-void SfxItemSet::InvalidateDefaultItems()
-{
- sal_uInt16* pPtr = m_pWhichRanges;
- SfxItemArray ppFnd = m_pItems;
-
- while( *pPtr )
- {
- for ( sal_uInt16 nWhich = *pPtr; nWhich <= *(pPtr+1); ++nWhich, ++ppFnd )
- if (*ppFnd && *ppFnd != reinterpret_cast<SfxPoolItem *>(-1)
- && **ppFnd == m_pPool->GetDefaultItem(nWhich))
- {
- m_pPool->Remove( **ppFnd );
- *ppFnd = reinterpret_cast<SfxPoolItem*>(-1);
- }
- pPtr += 2;
- }
-}
-
void SfxItemSet::InvalidateAllItems()
{
assert( !m_nCount && "There are still Items set" );