summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorChris Palmer <palmer@google.com>2014-08-06 14:17:45 -0700
committerChris Palmer <palmer@google.com>2014-08-06 14:17:45 -0700
commit9047b8bde94aa66bc64ac01c7774b8d2ff5bb09e (patch)
tree0fba1b54c5554cc390b62408f8a13ddd1d3777da /fpdfsdk
parentef72d48bc190017cc4181135b6593357ccc7d977 (diff)
downloadpdfium-9047b8bde94aa66bc64ac01c7774b8d2ff5bb09e.tar.xz
Clean up meaningless branch on commented-out code.
BUG=https://code.google.com/p/pdfium/issues/detail?id=35 R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/451483003
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/src/fsdk_actionhandler.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/fpdfsdk/src/fsdk_actionhandler.cpp b/fpdfsdk/src/fsdk_actionhandler.cpp
index 97b0a956c7..518abd21f0 100644
--- a/fpdfsdk/src/fsdk_actionhandler.cpp
+++ b/fpdfsdk/src/fsdk_actionhandler.cpp
@@ -268,21 +268,16 @@ FX_BOOL CPDFSDK_ActionHandler::ExecuteDocumentPageAction(const CPDF_Action& acti
FX_BOOL CPDFSDK_ActionHandler::IsValidField(CPDFSDK_Document* pDocument, CPDF_Dictionary* pFieldDict)
{
- ASSERT(pDocument != NULL);
- ASSERT(pFieldDict != NULL);
+ ASSERT(pDocument != NULL);
+ ASSERT(pFieldDict != NULL);
- if (1/*m_pApp->IsValidDocument(pDocument)*/)
- {
- CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
- ASSERT(pInterForm != NULL);
+ CPDFSDK_InterForm* pInterForm = pDocument->GetInterForm();
+ ASSERT(pInterForm != NULL);
- CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
- ASSERT(pPDFInterForm != NULL);
+ CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm();
+ ASSERT(pPDFInterForm != NULL);
- return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL;
- }
-
- return FALSE;
+ return pPDFInterForm->GetFieldByDict(pFieldDict) != NULL;
}
FX_BOOL CPDFSDK_ActionHandler::ExecuteFieldAction(const CPDF_Action& action, CPDF_AAction::AActionType type,