From c04f7de3d2b9fb490ce6ef425d147037cb1b5d8d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Feb 2017 12:34:41 +0200 Subject: [PATCH] remove unused Sentence from BreakupUnit Change-Id: I324d344a9e9154345b8bd7c8653415cfcbfc26cc --- .../source/primitive2d/textbreakuphelper.cxx | 18 ------------------ .../primitive2d/textbreakuphelper.hxx | 3 +-- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/drawinglayer/source/primitive2d/textbreakuphelper.cxx b/drawinglayer/source/primitive2d/textbreakuphelper.cxx index 91cde4f9c346..fa6b213cc0c1 100644 --- a/drawinglayer/source/primitive2d/textbreakuphelper.cxx +++ b/drawinglayer/source/primitive2d/textbreakuphelper.cxx @@ -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; diff --git a/include/drawinglayer/primitive2d/textbreakuphelper.hxx b/include/drawinglayer/primitive2d/textbreakuphelper.hxx index 44dcd71efb20..e63c3f61ae0b 100644 --- a/include/drawinglayer/primitive2d/textbreakuphelper.hxx +++ b/include/drawinglayer/primitive2d/textbreakuphelper.hxx @@ -33,8 +33,7 @@ namespace drawinglayer enum class BreakupUnit { Character, - Word, - Sentence + Word }; class DRAWINGLAYER_DLLPUBLIC TextBreakupHelper