Remove spurious XFA unsupported warning on XFA branch
authorTom Sepez <tsepez@chromium.org>
Thu, 18 Dec 2014 23:13:46 +0000 (15:13 -0800)
committerTom Sepez <tsepez@chromium.org>
Thu, 18 Dec 2014 23:13:46 +0000 (15:13 -0800)
R=bo_xu@foxitsoftware.com

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

fpdfsdk/src/fpdf_ext.cpp

index 512a617..0ba6672 100644 (file)
@@ -204,18 +204,6 @@ void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code)
        CXML_Element * pElement = metaData.GetRoot();
        if(pElement)
                CheckSharedForm(pElement, "workflowType");
-
-       
-       // XFA Forms
-       CPDF_InterForm * pInterForm = FX_NEW CPDF_InterForm(pDoc,FALSE);
-       if (pInterForm)
-       {
-               if(pInterForm->HasXFAForm())
-               {
-                       FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM);
-               }
-               delete pInterForm;
-       }
 }
 
 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document)