Remove ICU check from subset_harfbuzz
The Skia build of HarfBuzz does not use ICU, so there is no need to
initialize it. If a user uses a HarfBuzz build which does use ICU, they
will need enuse that ICU is initialized in their own way.
Change-Id: I89bd518dbf3c58aaaee2463a26d6402738dfbf97
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453140
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/src/pdf/SkPDFSubsetFont.cpp b/src/pdf/SkPDFSubsetFont.cpp
index 2340a79..80f2ee6 100644
--- a/src/pdf/SkPDFSubsetFont.cpp
+++ b/src/pdf/SkPDFSubsetFont.cpp
@@ -3,10 +3,6 @@
#include "src/pdf/SkPDFSubsetFont.h"
-#if defined(SK_USING_THIRD_PARTY_ICU)
-#include "SkLoadICU.h"
-#endif
-
#if defined(SK_PDF_USE_HARFBUZZ_SUBSET)
#include "include/private/SkTemplates.h"
@@ -83,11 +79,6 @@
static sk_sp<SkData> subset_harfbuzz(sk_sp<SkData> fontData,
const SkPDFGlyphUse& glyphUsage,
int ttcIndex) {
-#if defined(SK_USING_THIRD_PARTY_ICU)
- if (!SkLoadICU()) {
- return nullptr;
- }
-#endif
if (!fontData) {
return nullptr;
}