Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1460)

Unified Diff: core/src/fxge/apple/fx_mac_imp.cpp

Issue 801913002: Simplify PDFium by removing code that's not used in the open source repo. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/src/fxge/apple/fx_mac_imp.cpp
diff --git a/core/src/fxge/apple/fx_mac_imp.cpp b/core/src/fxge/apple/fx_mac_imp.cpp
index a21aa5ded54e2e1b6818d0abfc2e9f4b294499b1..5acedc0bd909f871f3495b253aa3801516438164 100644
--- a/core/src/fxge/apple/fx_mac_imp.cpp
+++ b/core/src/fxge/apple/fx_mac_imp.cpp
@@ -25,7 +25,6 @@ Base14Substs[] = {
{"Times-BoldItalic", "Times New Roman Bold Italic"},
{"Times-Italic", "Times New Roman Italic"},
};
-#if !defined(_FPDFAPI_MINI_)
class CFX_MacFontInfo : public CFX_FolderFontInfo
{
public:
@@ -86,10 +85,8 @@ void* CFX_MacFontInfo::MapFont(int weight, FX_BOOL bItalic, int charset, int pit
}
return NULL;
}
-#endif
IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault()
{
-#if !defined(_FPDFAPI_MINI_)
CFX_MacFontInfo* pInfo = FX_NEW CFX_MacFontInfo;
if (!pInfo) {
return NULL;
@@ -98,9 +95,6 @@ IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault()
pInfo->AddPath("/Library/Fonts");
pInfo->AddPath("/System/Library/Fonts");
return pInfo;
-#else
- return NULL;
-#endif
}
void CFX_GEModule::InitPlatform()
{

Powered by Google App Engine
This is Rietveld 408576698