Clean up meaningless branch on commented-out code.
authorChris Palmer <palmer@google.com>
Wed, 6 Aug 2014 21:17:45 +0000 (14:17 -0700)
committerChris Palmer <palmer@google.com>
Wed, 6 Aug 2014 21:17:45 +0000 (14:17 -0700)
BUG=https://code.google.com/p/pdfium/issues/detail?id=35
R=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/451483003

fpdfsdk/src/fsdk_actionhandler.cpp

index 97b0a95..518abd2 100644 (file)
@@ -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,