From 5eca305b1586b2107566a5c124baa5f2e00096c0 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 22 Feb 2016 20:32:21 -0800 Subject: Remove foo != NULL outside of xfa/ Most of these are from the XFA branch. R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1720043003 . --- fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'fpdfsdk/src/fpdfxfa') diff --git a/fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp b/fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp index fab90a26d3..1f6aa12126 100644 --- a/fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp +++ b/fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp @@ -118,8 +118,6 @@ FX_BOOL CPDFXFA_Page::LoadPDFPage(CPDF_Dictionary* pageDict) { } FX_FLOAT CPDFXFA_Page::GetPageWidth() { - ASSERT(m_pDocument != NULL); - if (!m_pPDFPage && !m_pXFAPageView) return 0.0f; @@ -145,8 +143,6 @@ FX_FLOAT CPDFXFA_Page::GetPageWidth() { } FX_FLOAT CPDFXFA_Page::GetPageHeight() { - ASSERT(m_pDocument != NULL); - if (!m_pPDFPage && !m_pXFAPageView) return 0.0f; @@ -180,8 +176,6 @@ void CPDFXFA_Page::DeviceToPage(int start_x, int device_y, double* page_x, double* page_y) { - ASSERT(m_pDocument != NULL); - if (!m_pPDFPage && !m_pXFAPageView) return; @@ -229,8 +223,6 @@ void CPDFXFA_Page::GetDisplayMatrix(CFX_Matrix& matrix, int xSize, int ySize, int iRotate) const { - ASSERT(m_pDocument != NULL); - if (!m_pPDFPage && !m_pXFAPageView) return; -- cgit v1.2.3