From f6217fad81482d0225fa88b4ef8eab16a9757ece Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 9 Dec 2010 12:06:16 +0000 Subject: cppcheck: unused variables --- sw/source/core/text/txthyph.cxx | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'sw/source') diff --git a/sw/source/core/text/txthyph.cxx b/sw/source/core/text/txthyph.cxx index dfba164b9dcc..bc16099f9c90 100644 --- a/sw/source/core/text/txthyph.cxx +++ b/sw/source/core/text/txthyph.cxx @@ -260,22 +260,6 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf ) if( bRet ) { XubString aSelTxt( rInf.GetTxt().Copy(nWrdStart, nLen) ); - xub_StrLen nCnt = 0; - -// these things should be handled by the dialog -// for( xub_StrLen i = 0; i < nLen; ++i ) -// { -// sal_Unicode cCh = aSelTxt.GetChar(i); -// if( (CH_TXTATR_BREAKWORD == cCh || CH_TXTATR_INWORD == cCh ) -// && rInf.HasHint( nWrdStart + i ) ) -// { -// aSelTxt.Erase( i , 1 ); -// nCnt++; -// --nLen; -// if( i ) -// --i; -// } -// } { MSHORT nMinTrail = 0; @@ -293,7 +277,7 @@ sal_Bool SwTxtFormatter::Hyphenate( SwInterHyphInfo &rHyphInf ) { rHyphInf.SetHyphWord( xHyphWord ); rHyphInf.nWordStart = nWrdStart; - rHyphInf.nWordLen = nLen+nCnt; + rHyphInf.nWordLen = nLen; rHyphInf.SetNoLang( sal_False ); rHyphInf.SetCheck( sal_True ); } -- cgit