From a860a3d596f3daeadfdca0cc2093bfca722fa3a3 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 13 Jul 2017 11:07:28 -0400 Subject: Remove unused CPDF_RenderOptions members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove members from CPDF_RenderOptions which are set but never read. Change-Id: I9598478bbc63c94af1c4693907abf66503138eb5 Reviewed-on: https://pdfium-review.googlesource.com/7750 Reviewed-by: Nicolás Peña Commit-Queue: dsinclair --- fpdfsdk/fpdfformfill.cpp | 1 - fpdfsdk/fpdfview.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfformfill.cpp b/fpdfsdk/fpdfformfill.cpp index 6f63f0e2fa..f2ae621098 100644 --- a/fpdfsdk/fpdfformfill.cpp +++ b/fpdfsdk/fpdfformfill.cpp @@ -131,7 +131,6 @@ void FFLCommon(FPDF_FORMHANDLE hHandle, options.m_ForeColor = 0; options.m_BackColor = 0xffffff; } - options.m_AddFlags = flags >> 8; options.m_bDrawAnnots = flags & FPDF_ANNOT; #ifdef PDF_ENABLE_XFA diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index 4d0845b616..48322a74dc 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -109,7 +109,6 @@ void RenderPageImpl(CPDF_PageRenderContext* pContext, const CPDF_OCContext::UsageType usage = (flags & FPDF_PRINTING) ? CPDF_OCContext::Print : CPDF_OCContext::View; - pContext->m_pOptions->m_AddFlags = flags >> 8; pContext->m_pOptions->m_pOCContext = pdfium::MakeRetain(pPage->m_pDocument.Get(), usage); -- cgit v1.2.3