remove unused Sentence from BreakupUnit

Change-Id: I324d344a9e9154345b8bd7c8653415cfcbfc26cc
This commit is contained in:
Noel Grandin 2017-02-16 12:34:41 +02:00
parent fd2ffceefc
commit c04f7de3d2
2 changed files with 1 additions and 20 deletions

View File

@ -260,24 +260,6 @@ namespace drawinglayer
}
break;
}
case BreakupUnit::Sentence:
{
sal_Int32 nNextSentenceBreak(xBreakIterator->endOfSentence(rTxt, nTextPosition, rLocale));
sal_Int32 a(nTextPosition);
for(; a < nTextPosition + nTextLength; a++)
{
if(a == nNextSentenceBreak)
{
breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
nCurrent = a;
nNextSentenceBreak = xBreakIterator->endOfSentence(rTxt, a + 1, rLocale);
}
}
breakupPortion(aTempResult, nCurrent, a - nCurrent, false);
break;
}
}
mxResult = aTempResult;

View File

@ -33,8 +33,7 @@ namespace drawinglayer
enum class BreakupUnit
{
Character,
Word,
Sentence
Word
};
class DRAWINGLAYER_DLLPUBLIC TextBreakupHelper