diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp index 708c66fdf7..017c1eab76 100755 --- a/src/ports/SkFontHost_win.cpp +++ b/src/ports/SkFontHost_win.cpp @@ -357,15 +357,6 @@ void SkLOGFONTFromTypeface(const SkTypeface* face, LOGFONT* lf) { } } -static void GetLogFontByID(SkFontID fontID, LOGFONT* lf) { - LogFontTypeface* face = static_cast(SkTypefaceCache::FindByID(fontID)); - if (face) { - *lf = face->fLogFont; - } else { - sk_bzero(lf, sizeof(LOGFONT)); - } -} - // Construct Glyph to Unicode table. // Unicode code points that require conjugate pairs in utf16 are not // supported. diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp index 5df90b47f3..e1685e63b0 100644 --- a/src/ports/SkFontHost_win_dw.cpp +++ b/src/ports/SkFontHost_win_dw.cpp @@ -725,9 +725,6 @@ void SkDWriteFontFromTypeface(const SkTypeface* face, IDWriteFont** font) { *font = SkRefComPtr(static_cast(face)->fDWriteFont.get()); } } -static DWriteFontTypeface* GetDWriteFontByID(SkFontID fontID) { - return static_cast(SkTypefaceCache::FindByID(fontID)); -} SkScalerContext_DW::SkScalerContext_DW(DWriteFontTypeface* typeface, const SkDescriptor* desc)