[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Fri Dec 8 13:53:08 UTC 2017
sw/source/core/txtnode/txtedt.cxx | 15 ---------------
1 file changed, 15 deletions(-)
New commits:
commit acebe3ea2bd358fc2a69f2da8bfa0c20664a6a9c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Dec 8 09:46:26 2017 +0100
sw: remove no longer building debug code in txtedt
Change-Id: Id80731a843fae93e752d2da4cec4a82f4c14333b
Reviewed-on: https://gerrit.libreoffice.org/46073
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
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 ) )
{
More information about the Libreoffice-commits
mailing list