diff options
author | npm <npm@chromium.org> | 2016-08-30 15:56:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-30 15:56:24 -0700 |
commit | 77be04971c130cadbbdba04814f3d77ef25548bc (patch) | |
tree | ffa1f11e5196708fa53158a7061c14cc486fcfc6 /core | |
parent | 8c54182aba447f7fbd6e763a559bec99ab996613 (diff) | |
download | pdfium-77be04971c130cadbbdba04814f3d77ef25548bc.tar.xz |
Clean up CPDF_CMap declarationchromium/2845
- Removed unused methods
- Friendship with CPDF_PathManager is not needed
- Protected may be changed to private
Review-Url: https://codereview.chromium.org/2292023003
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/fpdf_font/font_int.h | 5 | ||||
-rw-r--r-- | core/fpdfapi/fpdf_font/fpdf_font_cid.cpp | 5 |
2 files changed, 1 insertions, 9 deletions
diff --git a/core/fpdfapi/fpdf_font/font_int.h b/core/fpdfapi/fpdf_font/font_int.h index c1e2f75599..a09bb6bce6 100644 --- a/core/fpdfapi/fpdf_font/font_int.h +++ b/core/fpdfapi/fpdf_font/font_int.h @@ -142,20 +142,17 @@ class CPDF_CMap { const FX_CHAR* name, FX_BOOL bPromptCJK); FX_BOOL LoadEmbedded(const uint8_t* pData, uint32_t dwSize); - void Release(); FX_BOOL IsLoaded() const; FX_BOOL IsVertWriting() const; uint16_t CIDFromCharCode(uint32_t charcode) const; - uint32_t CharCodeFromCID(uint16_t CID) const; int GetCharSize(uint32_t charcode) const; uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; int CountChar(const FX_CHAR* pString, int size) const; int AppendChar(FX_CHAR* str, uint32_t charcode) const; - protected: + private: friend class CPDF_CMapParser; - friend class CPDF_CMapManager; friend class CPDF_CIDFont; CFX_ByteString m_PredefinedCMap; diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp index cfcac364b9..d8cada7af3 100644 --- a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp +++ b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp @@ -518,11 +518,6 @@ CPDF_CMap::~CPDF_CMap() { FX_Free(m_pAddMapping); FX_Free(m_pLeadingBytes); } -void CPDF_CMap::Release() { - if (m_PredefinedCMap.IsEmpty()) { - delete this; - } -} FX_BOOL CPDF_CMap::IsLoaded() const { return m_bLoaded; |