From e18f1d6216b13c38525d37448da882a63a3d0055 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Jul 2012 13:20:27 +0100 Subject: remove distracting and unhelpful debugging code Change-Id: I870df7d4af666c1cb087cec6d4daebcba87ff8ab --- editeng/source/misc/unolingu.cxx | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'editeng') diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index 431053b2771f..486052e9a634 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -260,12 +260,7 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) xLngSvcMgr->getConfiguredServices( aService, aLocale )); Sequence< OUString > aAvailSvcs( xLngSvcMgr->getAvailableServices( aService, aLocale )); -#if OSL_DEBUG_LEVEL > 1 - const OUString * pCfgSvcs = aCfgSvcs.getConstArray(); - const OUString * pAvailSvcs = aAvailSvcs.getConstArray(); - (void) pCfgSvcs; - (void) pAvailSvcs; -#endif + aCfgSvcs = lcl_RemoveMissingEntries( aCfgSvcs, aAvailSvcs ); aCurSvcs[k][ pNodeName[i] ] = aCfgSvcs; @@ -286,14 +281,6 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) lcl_GetLastFoundSvcs( aCfg, aLastFoundList , pAvailLocale[i] )); Sequence< OUString > aNewSvcs = lcl_GetNewEntries( aLastSvcs, aAvailSvcs ); -#if OSL_DEBUG_LEVEL > 1 - const OUString * pAvailSvcs = aAvailSvcs.getConstArray(); - const OUString * pLastSvcs = aLastSvcs.getConstArray(); - const OUString * pNewSvcs = aNewSvcs.getConstArray(); - (void) pAvailSvcs; - (void) pLastSvcs; - (void) pNewSvcs; -#endif OUString aCfgLocaleStr( MsLangId::convertLanguageToIsoString( SvxLocaleToLanguage( pAvailLocale[i] ) ) ); @@ -313,15 +300,6 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) Sequence< OUString > aSvcImplNames( xLngSvcMgr->getAvailableServices( aService, pAvailLocale[i] ) ); -#if OSL_DEBUG_LEVEL > 1 - sal_Int32 nSvcs = aSvcImplNames.getLength(); - const OUString *pSvcImplName = aSvcImplNames.getConstArray(); - for (sal_Int32 j = 0; j < nSvcs; ++j) - { - OUString aImplName( pSvcImplName[j] ); - } -#endif - OUString aCfgLocaleStr( MsLangId::convertLanguageToIsoString( SvxLocaleToLanguage( pAvailLocale[i] ) ) ); aLastFoundSvcs[k][ aCfgLocaleStr ] = aSvcImplNames; @@ -349,15 +327,6 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) aCfgEntryName += OUString::valueOf( (sal_Unicode) '/' ); aCfgEntryName += (*aIt).first; -#if OSL_DEBUG_LEVEL > 1 - Sequence< OUString > aSvcImplNames( (*aIt).second ); - sal_Int32 nSvcs = aSvcImplNames.getLength(); - const OUString *pSvcImplName = aSvcImplNames.getConstArray(); - for (sal_Int32 j = 0; j < nSvcs; ++j) - { - OUString aImplName( pSvcImplName[j] ); - } -#endif pNewValue->Name = aCfgEntryName; pNewValue->Value <<= (*aIt).second; ++pNewValue; -- cgit