From e8a80664a888526ca4f0d08b4e6b290eb0aa0d76 Mon Sep 17 00:00:00 2001 From: weili Date: Mon, 18 Jul 2016 06:01:07 -0700 Subject: Remove foxit app related setter and getter APIs in XFA code No need to get or set foxit app type, name, and version, thus remove all these APIs and implementation. Review-Url: https://codereview.chromium.org/2050913002 --- fpdfsdk/fpdfxfa/fpdfxfa_app.cpp | 14 -------------- fpdfsdk/fpdfxfa/include/fpdfxfa_app.h | 5 ----- 2 files changed, 19 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp index 5fe114a64c..5774a54785 100644 --- a/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp +++ b/fpdfsdk/fpdfxfa/fpdfxfa_app.cpp @@ -93,20 +93,10 @@ void CPDFXFA_App::GetAppName(CFX_WideString& wsName) { } } -void CPDFXFA_App::GetFoxitAppName(CFX_WideString& wsFoxitName) { - wsFoxitName = L"Foxit"; -} - void CPDFXFA_App::SetAppType(const CFX_WideStringC& wsAppType) { m_csAppType = wsAppType; } -void CPDFXFA_App::SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) {} - -void CPDFXFA_App::GetFoxitAppType(CFX_WideString& wsFoxitAppType) { - wsFoxitAppType.clear(); -} - void CPDFXFA_App::GetLanguage(CFX_WideString& wsLanguage) { CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); if (pEnv) { @@ -129,10 +119,6 @@ void CPDFXFA_App::GetVersion(CFX_WideString& wsVersion) { wsVersion = JS_STR_VIEWERVERSION_XFA; } -void CPDFXFA_App::GetFoxitVersion(CFX_WideString& wsFoxitVersion) { - wsFoxitVersion = L"7.0"; -} - void CPDFXFA_App::Beep(uint32_t dwType) { CPDFDoc_Environment* pEnv = m_pEnvList.GetAt(0); if (pEnv) { diff --git a/fpdfsdk/fpdfxfa/include/fpdfxfa_app.h b/fpdfsdk/fpdfxfa/include/fpdfxfa_app.h index 993d4b4254..7b96e4378f 100644 --- a/fpdfsdk/fpdfxfa/include/fpdfxfa_app.h +++ b/fpdfsdk/fpdfxfa/include/fpdfxfa_app.h @@ -36,17 +36,12 @@ class CPDFXFA_App : public IXFA_AppProvider { // IFXA_AppProvider: void GetAppType(CFX_WideString& wsAppType) override; void SetAppType(const CFX_WideStringC& wsAppType) override; - void SetFoxitAppType(const CFX_WideStringC& wsFoxitAppType) override; - void GetFoxitAppType(CFX_WideString& wsFoxitAppType) override; void GetLanguage(CFX_WideString& wsLanguage) override; void GetPlatform(CFX_WideString& wsPlatform) override; void GetVariation(CFX_WideString& wsVariation) override; void GetVersion(CFX_WideString& wsVersion) override; - void GetFoxitVersion(CFX_WideString& wsFoxitVersion) override; - void GetAppName(CFX_WideString& wsName) override; - void GetFoxitAppName(CFX_WideString& wsFoxitName) override; void Beep(uint32_t dwType) override; int32_t MsgBox(const CFX_WideString& wsMessage, -- cgit v1.2.3