Dead code
Change-Id: I75eb10ff622743dc95b4f7fbec14f37447ce0edf Reviewed-on: https://skia-review.googlesource.com/c/skia/+/267481 Commit-Queue: Julia Lavrova <jlavrova@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
792400bec3
commit
7c1142dd7b
@ -72,27 +72,6 @@ void ParagraphBuilderImpl::addText(const std::u16string& text) {
|
||||
std::string str;
|
||||
unicode.toUTF8String(str);
|
||||
fUtf8.insert(fUtf8.size(), str.c_str());
|
||||
|
||||
UText utf16UText = UTEXT_INITIALIZER;
|
||||
UErrorCode errorCode = U_ZERO_ERROR;
|
||||
|
||||
auto iter = ubrk_open(UBRK_WORD, icu::Locale().getName(), nullptr, 0, &errorCode);
|
||||
if (U_FAILURE(errorCode)) {
|
||||
SkDEBUGF("Could not create line break iterator: %s", u_errorName(errorCode));
|
||||
return;
|
||||
}
|
||||
|
||||
utext_openUnicodeString(&utf16UText, &unicode, &errorCode);
|
||||
if (U_FAILURE(errorCode)) {
|
||||
SkDEBUGF("Could not create utf8UText: %s", u_errorName(errorCode));
|
||||
return;
|
||||
}
|
||||
|
||||
ubrk_setUText(iter, &utf16UText, &errorCode);
|
||||
if (U_FAILURE(errorCode)) {
|
||||
SkDEBUGF("Could not setText on break iterator: %s", u_errorName(errorCode));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void ParagraphBuilderImpl::addText(const char* text) {
|
||||
|
Loading…
Reference in New Issue
Block a user