diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-16 16:37:16 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-17 15:39:14 +0000 |
commit | b3e7bfa6ed35651a22df314352883ccb44a7203d (patch) | |
tree | 7d5c4734bb8203f358890d09d2bafc49bc7fa67a /xfa/fde/cfde_txtedttextset.cpp | |
parent | 1748c4f6e42cda6ffa6bf32731d2fd525c060cf1 (diff) | |
download | pdfium-b3e7bfa6ed35651a22df314352883ccb44a7203d.tar.xz |
Cleanup visibilty and unused methods in xfa/fde
This CL fixes the visibility of some methods in xfa/fde along with
removing unused methods. Unused params are also removed.
Change-Id: Ic6e6d2ac8d07dc4bdabb3e0121831e4bf3fbb8ec
Reviewed-on: https://pdfium-review.googlesource.com/11271
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedttextset.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedttextset.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/xfa/fde/cfde_txtedttextset.cpp b/xfa/fde/cfde_txtedttextset.cpp index 79d6dd99c8..fce52d3278 100644 --- a/xfa/fde/cfde_txtedttextset.cpp +++ b/xfa/fde/cfde_txtedttextset.cpp @@ -15,28 +15,6 @@ CFDE_TxtEdtTextSet::CFDE_TxtEdtTextSet(CFDE_TxtEdtPage* pPage) CFDE_TxtEdtTextSet::~CFDE_TxtEdtTextSet() {} -int32_t CFDE_TxtEdtTextSet::GetString(FDE_TEXTEDITPIECE* pPiece, - CFX_WideString& wsText) const { - wchar_t* pBuffer = wsText.GetBuffer(pPiece->nCount); - for (int32_t i = 0; i < pPiece->nCount; i++) - pBuffer[i] = m_pPage->GetChar(pPiece, i); - - wsText.ReleaseBuffer(pPiece->nCount); - return pPiece->nCount; -} - -CFX_RetainPtr<CFGAS_GEFont> CFDE_TxtEdtTextSet::GetFont() const { - return m_pPage->GetEngine()->GetEditParams()->pFont; -} - -float CFDE_TxtEdtTextSet::GetFontSize() const { - return m_pPage->GetEngine()->GetEditParams()->fFontSize; -} - -FX_ARGB CFDE_TxtEdtTextSet::GetFontColor() const { - return m_pPage->GetEngine()->GetEditParams()->dwFontColor; -} - int32_t CFDE_TxtEdtTextSet::GetDisplayPos(const FDE_TEXTEDITPIECE& piece, FXTEXT_CHARPOS* pCharPos) const { int32_t nLength = piece.nCount; |