diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-18 08:57:35 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-18 14:28:04 +0000 |
commit | 091344f0d97022a0bf1f9edc41455b50f95b5d05 (patch) | |
tree | 60963a0a71c27fd6fffb38ffc9ad10fb37a4dd28 /xfa/fde/css/fde_cssstylesheet.cpp | |
parent | 09065aeee59e51e88de054c8dab3b0e538c0893f (diff) | |
download | pdfium-091344f0d97022a0bf1f9edc41455b50f95b5d05.tar.xz |
Remove unused codePage and URL code.
These methods are never called, removed.
Change-Id: I47930c209229c9e50effc433579809b882cd2dc9
Reviewed-on: https://pdfium-review.googlesource.com/2215
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/css/fde_cssstylesheet.cpp')
-rw-r--r-- | xfa/fde/css/fde_cssstylesheet.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/xfa/fde/css/fde_cssstylesheet.cpp b/xfa/fde/css/fde_cssstylesheet.cpp index 4477593359..5bbd9fd49e 100644 --- a/xfa/fde/css/fde_cssstylesheet.cpp +++ b/xfa/fde/css/fde_cssstylesheet.cpp @@ -50,9 +50,7 @@ int32_t GetCSSNameLen(const FX_WCHAR* psz, const FX_WCHAR* pEnd) { } // namespace CFDE_CSSStyleSheet::CFDE_CSSStyleSheet() - : m_wCodePage(FX_CODEPAGE_UTF8), - m_wRefCount(1), - m_dwMediaList(FDE_CSSMEDIATYPE_ALL) { + : m_wRefCount(1), m_dwMediaList(FDE_CSSMEDIATYPE_ALL) { ASSERT(m_dwMediaList > 0); } @@ -76,19 +74,10 @@ uint32_t CFDE_CSSStyleSheet::Release() { return dwRefCount; } -bool CFDE_CSSStyleSheet::GetUrl(CFX_WideString& szUrl) { - szUrl = m_szUrl; - return szUrl.GetLength() > 0; -} - uint32_t CFDE_CSSStyleSheet::GetMediaList() const { return m_dwMediaList; } -uint16_t CFDE_CSSStyleSheet::GetCodePage() const { - return m_wCodePage; -} - int32_t CFDE_CSSStyleSheet::CountRules() const { return pdfium::CollectionSize<int32_t>(m_RuleArray); } @@ -101,9 +90,6 @@ bool CFDE_CSSStyleSheet::LoadFromBuffer(const FX_WCHAR* pBuffer, int32_t iBufSize) { ASSERT(pBuffer && iBufSize > 0); - m_wCodePage = FX_CODEPAGE_UTF8; - m_szUrl = CFX_WideString(); - auto pSyntax = pdfium::MakeUnique<CFDE_CSSSyntaxParser>(); return pSyntax->Init(pBuffer, iBufSize) && LoadFromSyntax(pSyntax.get()); } |