summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-09 20:50:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-09 20:50:55 +0000
commit6ab93f59c336942ffd6cffc05a179aa0c6b2c8f1 (patch)
tree3c8d0673ae7cd11512b54529e094f662e6d697b9
parentab226471570afef1e3619e6480d5485f0a75fddd (diff)
downloadpdfium-6ab93f59c336942ffd6cffc05a179aa0c6b2c8f1.tar.xz
Remove small unreachable path in GetLinkList().
Both callers have already checked for null and returned errors. Change-Id: I48a7333dae36b74aed059ef5bba8bfe10ef2c2aa Reviewed-on: https://pdfium-review.googlesource.com/c/43750 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fpdfsdk/fpdf_doc.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_doc.cpp b/fpdfsdk/fpdf_doc.cpp
index d3c8e23818..e7b9042479 100644
--- a/fpdfsdk/fpdf_doc.cpp
+++ b/fpdfsdk/fpdf_doc.cpp
@@ -51,9 +51,6 @@ CPDF_Bookmark FindBookmark(const CPDF_BookmarkTree& tree,
}
CPDF_LinkList* GetLinkList(CPDF_Page* page) {
- if (!page)
- return nullptr;
-
CPDF_Document* pDoc = page->GetDocument();
std::unique_ptr<CPDF_LinkList>* pHolder = pDoc->LinksContext();
if (!pHolder->get())