Index: Source/platform/text/TextBreakIteratorICU.cpp |
diff --git a/Source/platform/text/TextBreakIteratorICU.cpp b/Source/platform/text/TextBreakIteratorICU.cpp |
index a6a6564ba1bf673690725f07c98cd5d36142c7d5..d20dd3a71843a473273fa7ca6c0f487b910c2455 100644 |
--- a/Source/platform/text/TextBreakIteratorICU.cpp |
+++ b/Source/platform/text/TextBreakIteratorICU.cpp |
@@ -107,17 +107,6 @@ private: |
friend WTF::ThreadSpecific<LineBreakIteratorPool>::operator LineBreakIteratorPool*(); |
}; |
-static TextBreakIterator* ensureIterator(bool& createdIterator, TextBreakIterator*& iterator, UBreakIteratorType type) |
-{ |
- if (!createdIterator) { |
- UErrorCode openStatus = U_ZERO_ERROR; |
- iterator = reinterpret_cast<TextBreakIterator*>(ubrk_open(type, currentTextBreakLocaleID(), 0, 0, &openStatus)); |
- createdIterator = true; |
- ASSERT_WITH_MESSAGE(U_SUCCESS(openStatus), "ICU could not open a break iterator: %s (%d)", u_errorName(openStatus), openStatus); |
- } |
- return iterator; |
-} |
- |
enum TextContext { NoContext, PriorContext, PrimaryContext }; |
const int textBufferCapacity = 16; |