summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-07-26 12:35:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-26 12:35:22 -0700
commit844c4b21cac5ab0f9b066f7336afcdb87db8b251 (patch)
treef250d28bb5c644050e26af7c4a621f00e9f79c7b
parentf2cee9894b9f7cf2e50060965ad1eedd90ab55b6 (diff)
downloadpdfium-844c4b21cac5ab0f9b066f7336afcdb87db8b251.tar.xz
Remove unused m_bFirstLayer in CPDF_RenderContext.
Review-Url: https://codereview.chromium.org/2183933002
-rw-r--r--core/fpdfapi/fpdf_render/fpdf_render.cpp8
-rw-r--r--core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h1
2 files changed, 2 insertions, 7 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render.cpp b/core/fpdfapi/fpdf_render/fpdf_render.cpp
index 3b4390ad6c..66beb5b04c 100644
--- a/core/fpdfapi/fpdf_render/fpdf_render.cpp
+++ b/core/fpdfapi/fpdf_render/fpdf_render.cpp
@@ -925,15 +925,11 @@ CPDF_GraphicStates* CPDF_RenderStatus::CloneObjStates(
CPDF_RenderContext::CPDF_RenderContext(CPDF_Page* pPage)
: m_pDocument(pPage->m_pDocument),
m_pPageResources(pPage->m_pPageResources),
- m_pPageCache(pPage->GetRenderCache()),
- m_bFirstLayer(TRUE) {}
+ m_pPageCache(pPage->GetRenderCache()) {}
CPDF_RenderContext::CPDF_RenderContext(CPDF_Document* pDoc,
CPDF_PageRenderCache* pPageCache)
- : m_pDocument(pDoc),
- m_pPageResources(nullptr),
- m_pPageCache(pPageCache),
- m_bFirstLayer(TRUE) {}
+ : m_pDocument(pDoc), m_pPageResources(nullptr), m_pPageCache(pPageCache) {}
CPDF_RenderContext::~CPDF_RenderContext() {}
diff --git a/core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h b/core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h
index 2974a658b4..9d67db1558 100644
--- a/core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h
+++ b/core/fpdfapi/fpdf_render/include/cpdf_rendercontext.h
@@ -61,7 +61,6 @@ class CPDF_RenderContext {
CPDF_Document* const m_pDocument;
CPDF_Dictionary* m_pPageResources;
CPDF_PageRenderCache* m_pPageCache;
- FX_BOOL m_bFirstLayer;
CFX_ArrayTemplate<Layer> m_Layers;
};