From 66601c4c3d89afc6b9b41a5d14359fe94222cc3a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 2 Oct 2018 18:58:16 +0000 Subject: Remove dead code in CPDF_PageRenderCache::ResetBitmap(). Callers only ever pass in nullptr for the bitmap parameter. Change-Id: Iefeb72a1268521a38b3d5ab4b03163b67bf35796 Reviewed-on: https://pdfium-review.googlesource.com/43210 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- fpdfsdk/fpdf_editimg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp index 3709da7d2e..a062990afe 100644 --- a/fpdfsdk/fpdf_editimg.cpp +++ b/fpdfsdk/fpdf_editimg.cpp @@ -67,7 +67,7 @@ bool LoadJpegHelper(FPDF_PAGE* pages, for (int index = 0; index < nCount; index++) { CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (pPage) - pImgObj->GetImage()->ResetCache(pPage, nullptr); + pImgObj->GetImage()->ResetCache(pPage); } } @@ -151,7 +151,7 @@ FPDFImageObj_SetBitmap(FPDF_PAGE* pages, for (int index = 0; index < nCount; index++) { CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (pPage) - pImgObj->GetImage()->ResetCache(pPage, nullptr); + pImgObj->GetImage()->ResetCache(pPage); } RetainPtr holder(CFXDIBitmapFromFPDFBitmap(bitmap)); pImgObj->GetImage()->SetImage(holder); -- cgit v1.2.3