summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-02 18:58:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-02 18:58:16 +0000
commit66601c4c3d89afc6b9b41a5d14359fe94222cc3a (patch)
treebf19226ec5fc8c28e28af1e39c2c06b5ec72b898 /fpdfsdk
parent25b3a605f3f8b57fc5281973e21587304ce3e803 (diff)
downloadpdfium-66601c4c3d89afc6b9b41a5d14359fe94222cc3a.tar.xz
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 <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdf_editimg.cpp4
1 files changed, 2 insertions, 2 deletions
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<CFX_DIBitmap> holder(CFXDIBitmapFromFPDFBitmap(bitmap));
pImgObj->GetImage()->SetImage(holder);