diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-08 09:46:26 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-08 14:51:07 +0100 |
commit | acebe3ea2bd358fc2a69f2da8bfa0c20664a6a9c (patch) | |
tree | 0749a6c87f01fd40e146aac695e6f94a16bcdabb /sw | |
parent | 523da0bfba2546552b4181e0268f41bc38a1903f (diff) |
sw: remove no longer building debug code in txtedt
Change-Id: Id80731a843fae93e752d2da4cec4a82f4c14333b
Reviewed-on: https://gerrit.libreoffice.org/46073
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 53fb0d13d02d..fcfdb8cbc3d6 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -703,12 +703,6 @@ OUString SwTextNode::GetCurWord( sal_Int32 nPos ) const const uno::Reference< XBreakIterator > &rxBreak = g_pBreakIt->GetBreakIter(); sal_Int16 nWordType = WordType::DICTIONARY_WORD; lang::Locale aLocale( g_pBreakIt->GetLocale( GetLang( nPos ) ) ); -#if OSL_DEBUG_LEVEL > 1 - sal_Bool bBegin = rxBreak->isBeginWord( m_Text, nPos, aLocale, nWordType ); - sal_Bool bEnd = rxBreak->isEndWord ( m_Text, nPos, aLocale, nWordType ); - (void)bBegin; - (void)bEnd; -#endif Boundary aBndry = rxBreak->getWordBoundary( m_Text, nPos, aLocale, nWordType, true ); @@ -1263,11 +1257,6 @@ bool SwTextNode::Convert( SwConversionArgs &rArgs ) SwRect SwTextFrame::AutoSpell_( const SwContentNode* pActNode, sal_Int32 nActPos ) { SwRect aRect; -#if OSL_DEBUG_LEVEL > 1 - static bool bStop = false; - if ( bStop ) - return aRect; -#endif SwTextNode *pNode = GetTextNode(); if( pNode != pActNode || !nActPos ) nActPos = COMPLETE_STRING; @@ -1552,10 +1541,6 @@ SwRect SwTextFrame::SmartTagScan() pNode->SetSmartTags( nullptr ); // Calculate repaint area: -#if OSL_DEBUG_LEVEL > 1 - const sal_uInt16 nNumberOfEntriesAfterRecognize2 = pSmartTagList->Count(); - (void) nNumberOfEntriesAfterRecognize2; -#endif if ( nBegin < nEnd && ( 0 != nNumberOfRemovedEntries || 0 != nNumberOfInsertedEntries ) ) { |