From 41d6bbe3d413e7854be89142b70c42a89e315cba Mon Sep 17 00:00:00 2001 From: npm Date: Wed, 14 Sep 2016 11:54:44 -0700 Subject: Delete unused parameter nWordStyle from GetCharWidth() Deleted parameter from callers, who also do not use it. Review-Url: https://codereview.chromium.org/2337973004 --- fpdfsdk/fxedit/fxet_edit.cpp | 4 +--- fpdfsdk/fxedit/include/fxet_edit.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp index df8d9ca51d..f4350f310e 100644 --- a/fpdfsdk/fxedit/fxet_edit.cpp +++ b/fpdfsdk/fxedit/fxet_edit.cpp @@ -223,9 +223,7 @@ IPVT_FontMap* CFX_Edit_Provider::GetFontMap() { return m_pFontMap; } -int32_t CFX_Edit_Provider::GetCharWidth(int32_t nFontIndex, - uint16_t word, - int32_t nWordStyle) { +int32_t CFX_Edit_Provider::GetCharWidth(int32_t nFontIndex, uint16_t word) { if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { uint32_t charcode = word; diff --git a/fpdfsdk/fxedit/include/fxet_edit.h b/fpdfsdk/fxedit/include/fxet_edit.h index 9ef2e64fc3..c1b000012f 100644 --- a/fpdfsdk/fxedit/include/fxet_edit.h +++ b/fpdfsdk/fxedit/include/fxet_edit.h @@ -542,9 +542,7 @@ class CFX_Edit_Provider : public CPDF_VariableText::Provider { IPVT_FontMap* GetFontMap(); // CPDF_VariableText::Provider: - int32_t GetCharWidth(int32_t nFontIndex, - uint16_t word, - int32_t nWordStyle) override; + int32_t GetCharWidth(int32_t nFontIndex, uint16_t word) override; int32_t GetTypeAscent(int32_t nFontIndex) override; int32_t GetTypeDescent(int32_t nFontIndex) override; int32_t GetWordFontIndex(uint16_t word, -- cgit v1.2.3