Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: core/fpdfapi/fpdf_font/fpdf_font_cid.cpp

Issue 2353963003: Delete unused in CPDF_CMapManager, CPDF_CMapParser (Closed)
Patch Set: Deletions in CPDF_CMapParser Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_font/font_int.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
index 457f8eec3ed849182c9428a0e3031d61e2705c98..3f95ec4a96cb12172f801ce4e424fa26b1b45425 100644
--- a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
+++ b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
@@ -279,7 +279,6 @@ int GetCharSizeImpl(uint32_t charcode,
} // namespace
CPDF_CMapManager::CPDF_CMapManager() {
- m_bPrompted = FALSE;
FXSYS_memset(m_CID2UnicodeMaps, 0, sizeof m_CID2UnicodeMaps);
}
CPDF_CMapManager::~CPDF_CMapManager() {
@@ -314,16 +313,6 @@ CPDF_CMap* CPDF_CMapManager::LoadPredefinedCMap(const CFX_ByteString& name,
return pCMap;
}
-void CPDF_CMapManager::ReloadAll() {
- for (const auto& pair : m_CMaps)
- pair.second->LoadPredefined(this, pair.first, FALSE);
-
- for (size_t i = 0; i < FX_ArraySize(m_CID2UnicodeMaps); ++i) {
- if (CPDF_CID2UnicodeMap* pMap = m_CID2UnicodeMaps[i]) {
- pMap->Load(this, CIDSetFromSizeT(i), FALSE);
- }
- }
-}
CPDF_CID2UnicodeMap* CPDF_CMapManager::GetCID2UnicodeMap(CIDSet charset,
FX_BOOL bPromptCJK) {
if (!m_CID2UnicodeMaps[charset])
« no previous file with comments | « core/fpdfapi/fpdf_font/font_int.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698