diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-12-14 22:13:43 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-12-15 08:31:55 +0200 |
commit | 87c9465262680dec09efb869800859aa65ab1d19 (patch) | |
tree | bccc2c51d9fd784aac69219b9d162877859fd780 /svl | |
parent | 0585d81a76a99de5fb3ed2e8c34a3fc44cd83b46 (diff) |
Bin unused function DbgCheckItemSet
Change-Id: Ia08e7ea3381cd450d2dadd8add723574634124e0
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemset.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 940a43e0b557..a0ad76fc7b8e 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -39,39 +39,6 @@ static const sal_uInt16 nInitCount = 10; // Single USHORTs => 5 pairs without '0 #include "nranges.cxx" #include "poolio.hxx" - -#ifdef DBG_UTIL - - -const sal_Char *DbgCheckItemSet( const void* pVoid ) -{ - const SfxItemSet *pSet = static_cast<const SfxItemSet*>(pVoid); - SfxWhichIter aIter( *pSet ); - sal_uInt16 nCount = 0, n = 0; - for ( sal_uInt16 nWh = aIter.FirstWhich(); nWh; nWh = aIter.NextWhich(), ++n ) - { - const SfxPoolItem *pItem = pSet->m_pItems[n]; - if ( pItem ) - { - ++nCount; - assert((IsInvalidItem(pItem) || - pItem->Which() == 0 || pItem->Which() == nWh - ) && "SfxItemSet: invalid which-id" ); - assert((IsInvalidItem(pItem) || !pItem->Which() || - !SfxItemPool::IsWhich(pItem->Which()) || - pSet->GetPool()->IsItemFlag(nWh, SfxItemPoolFlags::NOT_POOLABLE) || - SFX_ITEMS_NULL != pSet->GetPool()->GetSurrogate(pItem) - ) && "SfxItemSet: item in set which is not in pool" ); - } - - } - assert(pSet->m_nCount == nCount); - - return nullptr; -} - -#endif - /** * Ctor for a SfxItemSet with exactly the Which Ranges, which are known to * the supplied SfxItemPool. |