tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 2e69dc80913ab65d17b6d07024e60394cbf7181c
parent 3d70404f3b5582736cff5d5c02b9080d55f7000b
Author: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Date:   Wed,  3 Dec 2025 06:15:01 +0000

Bug 2003405 - Remove check icu4x prefernce for Sentence segmenter. r=TYLin

Now ICU4x is built by default, and no option to disable it. So it is
unnecessary to check ICU4X preference for sentence segmenter.

Differential Revision: https://phabricator.services.mozilla.com/D274879

Diffstat:
Mintl/lwbrk/Segmenter.cpp | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/intl/lwbrk/Segmenter.cpp b/intl/lwbrk/Segmenter.cpp @@ -496,11 +496,7 @@ UniquePtr<SegmentIteratorUtf16> Segmenter::Segment( case SegmenterGranularity::Grapheme: return MakeUnique<GraphemeClusterBreakIteratorUtf16>(aText); case SegmenterGranularity::Sentence: - if (StaticPrefs::intl_icu4x_segmenter_enabled()) { - return MakeUnique<SentenceBreakIteratorUtf16>(aText); - } - MOZ_ASSERT_UNREACHABLE("Unimplemented yet!"); - return nullptr; + return MakeUnique<SentenceBreakIteratorUtf16>(aText); case SegmenterGranularity::Word: return MakeUnique<WordBreakIteratorUtf16>(aText); case SegmenterGranularity::Line: