diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-30 16:00:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-31 10:43:23 +0100 |
commit | 8de61c9fb6a4c3be54b51c575fcffcec2067e090 (patch) | |
tree | a5e71351f79b88a47ae9400d141a13bcfe906bd9 /sfx2/source/dialog/basedlgs.cxx | |
parent | 5131e0be31afb8d7686483fd5552b10cecd1c5f0 (diff) |
grabbag of unused code
Diffstat (limited to 'sfx2/source/dialog/basedlgs.cxx')
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index 2635aba3f0d6..e1d90733c480 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -965,57 +965,4 @@ void SfxSingleTabDialog::SetInfoLink( const Link& rLink ) pImpl->m_aInfoLink = rLink; } -//-------------------------------------------------------------------- -// Comparison function for qsort - -extern "C" int SAL_CALL BaseDlgsCmpUS_Impl( const void* p1, const void* p2 ) -{ - return *(sal_uInt16*)p1 - *(sal_uInt16*)p2; -} - -// ----------------------------------------------------------------------- - -/* - Creates the set over the Page range. the page must register the static - method for querys on the range in SetTabPage, so the Set is delivered - onDemand. - */ -const sal_uInt16* SfxSingleTabDialog::GetInputRanges( const SfxItemPool& rPool ) -{ - if ( GetInputItemSet() ) - { - OSL_FAIL( "Set already exists!" ); - return GetInputItemSet()->GetRanges(); - } - - if ( pRanges ) - return pRanges; - SvUShorts aUS(16, 16); - - if ( fnGetRanges) - { - const sal_uInt16 *pTmpRanges = (fnGetRanges)(); - const sal_uInt16 *pIter = pTmpRanges; - sal_uInt16 nLen; - for ( nLen = 0; *pIter; ++nLen, ++pIter ) - ; - aUS.Insert( pTmpRanges, nLen, aUS.Count() ); - } - - //! Remove duplicate IDs? - sal_uInt16 nCount = aUS.Count(); - - for ( sal_uInt16 i = 0; i < nCount; ++i ) - aUS[i] = rPool.GetWhich( aUS[i]) ; - - // sort - if ( aUS.Count() > 1 ) - qsort( (void*)aUS.GetData(), aUS.Count(), sizeof(sal_uInt16), BaseDlgsCmpUS_Impl ); - - pRanges = new sal_uInt16[aUS.Count() + 1]; - memcpy( pRanges, aUS.GetData(), sizeof(sal_uInt16) * aUS.Count() ); - pRanges[aUS.Count()] = 0; - return pRanges; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |