diff --git a/sky/engine/platform/fonts/skia/FontCacheSkia.cpp b/sky/engine/platform/fonts/skia/FontCacheSkia.cpp index 246d96de6a6a5ebddf6ce4ec5d46c9c22cac0d1c..52067a6412e9aaa6dde983d48f9dc826c340d255 100644 --- a/sky/engine/platform/fonts/skia/FontCacheSkia.cpp +++ b/sky/engine/platform/fonts/skia/FontCacheSkia.cpp @@ -49,24 +49,6 @@ #include "third_party/skia/include/ports/SkFontConfigInterface.h" #endif -#if !OS(WIN) && !OS(ANDROID) && !OS(IOS) && !OS(MACOSX) -// TODO(bungeman) remove this temporary code ASAP. -// This namespace exists to ease transition of SkTypeface from using SkStream to SkStreamAsset. -namespace tmp { -// Like std::declval but only returns lvalue references, ok since it isn't used on rvalue references. -template T& declvall(); -// The return type of SkFontConfigInterface::openStream(const SkFontConfigInterface::FontIdentity&). -using StreamType = decltype(tmp::declvall().openStream(tmp::declvall())); -} -static tmp::StreamType streamForFontconfigInterfaceId(int fontconfigInterfaceId) -{ - SkAutoTUnref fci(SkFontConfigInterface::RefGlobal()); - SkFontConfigInterface::FontIdentity fontIdentity; - fontIdentity.fID = fontconfigInterfaceId; - return fci->openStream(fontIdentity); -} -#endif - namespace blink { static int toSkiaWeight(FontWeight weight)