Remove core/fxge/fx_ge_fontmap.cpp Move the one remaining stub into an android-specific file. Change-Id: I04afec7c9ae975f3ba06baf2bd17edf34fa99d7f Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/73032 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxge/BUILD.gn b/core/fxge/BUILD.gn index 47827a1..3a9ebe0 100644 --- a/core/fxge/BUILD.gn +++ b/core/fxge/BUILD.gn
@@ -103,7 +103,6 @@ "fx_font.cpp", "fx_font.h", "fx_freetype.h", - "fx_ge_fontmap.cpp", "render_defines.h", "renderdevicedriver_iface.cpp", "renderdevicedriver_iface.h",
diff --git a/core/fxge/android/cfx_androidfontinfo.cpp b/core/fxge/android/cfx_androidfontinfo.cpp index dc25f1e..f70f275 100644 --- a/core/fxge/android/cfx_androidfontinfo.cpp +++ b/core/fxge/android/cfx_androidfontinfo.cpp
@@ -80,3 +80,8 @@ } void CFX_AndroidFontInfo::DeleteFont(void* hFont) {} + +std::unique_ptr<SystemFontInfoIface> SystemFontInfoIface::CreateDefault( + const char** pUnused) { + return nullptr; +}
diff --git a/core/fxge/fx_ge_fontmap.cpp b/core/fxge/fx_ge_fontmap.cpp deleted file mode 100644 index 3c993a3..0000000 --- a/core/fxge/fx_ge_fontmap.cpp +++ /dev/null
@@ -1,17 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#include <memory> - -#include "build/build_config.h" -#include "core/fxge/systemfontinfo_iface.h" - -#if defined(OS_ANDROID) -std::unique_ptr<SystemFontInfoIface> SystemFontInfoIface::CreateDefault( - const char** pUnused) { - return nullptr; -} -#endif