From b88b8e47fd7adc14c7aff048c0def0579bdd22dd Mon Sep 17 00:00:00 2001 From: npm Date: Tue, 16 Aug 2016 15:37:20 -0700 Subject: Delete m_ExtHandle and RetainFont because they are not being used. CFX_SubstFont::m_ExtHandle is never assigned a value different from nullptr. Similarly, IFX_SystemFontInfo::RetainFont has two implementations. Both of these return nullptr, so this method is not needed. Review-Url: https://codereview.chromium.org/2252833002 --- core/fxge/android/fx_android_font.cpp | 4 ---- core/fxge/android/fx_android_font.h | 1 - 2 files changed, 5 deletions(-) (limited to 'core/fxge/android') diff --git a/core/fxge/android/fx_android_font.cpp b/core/fxge/android/fx_android_font.cpp index b1bfe90c1e..58a5ab4b85 100644 --- a/core/fxge/android/fx_android_font.cpp +++ b/core/fxge/android/fx_android_font.cpp @@ -88,8 +88,4 @@ void CFX_AndroidFontInfo::DeleteFont(void* hFont) { static_cast(hFont)->Release(); } -void* CFX_AndroidFontInfo::RetainFont(void* hFont) { - return nullptr; -} - #endif // _FX_OS_ == _FX_ANDROID_ diff --git a/core/fxge/android/fx_android_font.h b/core/fxge/android/fx_android_font.h index 881bd1db5f..ad777f3e58 100644 --- a/core/fxge/android/fx_android_font.h +++ b/core/fxge/android/fx_android_font.h @@ -40,7 +40,6 @@ class CFX_AndroidFontInfo : public IFX_SystemFontInfo { FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name) override; FX_BOOL GetFontCharset(void* hFont, int& charset) override; void DeleteFont(void* hFont) override; - void* RetainFont(void* hFont) override; protected: CFPF_SkiaFontMgr* m_pFontMgr; -- cgit v1.2.3