diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2015-10-22 11:13:57 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2015-10-22 11:13:57 -0400 |
commit | b57b4ad6daa32b8522c0ac5bb9d50451eb1f8469 (patch) | |
tree | ab59b127a1e25301986fc3df3e5495cf37d42d15 /fpdfsdk/src/fsdk_baseform.cpp | |
parent | e4bf83403b6791dda2afe3827a124df4f8c62237 (diff) | |
download | pdfium-b57b4ad6daa32b8522c0ac5bb9d50451eb1f8469.tar.xz |
Merge to XFA: Remove unused CPDFSDK_InterForm::DoFDFBuffer.
This method isn't used anywhere and the implementation doesn't really do
anything.
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1405163003 .
(cherry picked from commit 162f227af9c5e28885a36e6ca06a09c12c6223e0)
Review URL: https://codereview.chromium.org/1416283002 .
Diffstat (limited to 'fpdfsdk/src/fsdk_baseform.cpp')
-rw-r--r-- | fpdfsdk/src/fsdk_baseform.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp index 024287d706..2341cfcfce 100644 --- a/fpdfsdk/src/fsdk_baseform.cpp +++ b/fpdfsdk/src/fsdk_baseform.cpp @@ -2705,36 +2705,6 @@ FX_BOOL CPDFSDK_InterForm::SubmitFields(const CFX_WideString& csDestination, return TRUE; } -void CPDFSDK_InterForm::DoFDFBuffer(CFX_ByteString sBuffer) { - ASSERT(m_pDocument != NULL); - - if (CFDF_Document* pFDFDocument = CFDF_Document::ParseMemory( - (const unsigned char*)sBuffer.GetBuffer(sBuffer.GetLength()), - sBuffer.GetLength())) { - CPDF_Dictionary* pRootDic = pFDFDocument->GetRoot(); - if (pRootDic) { - CPDF_Dictionary* pFDFDict = pRootDic->GetDict("FDF"); - if (pFDFDict) { - CPDF_Dictionary* pJSDict = pFDFDict->GetDict("JavaScript"); - if (pJSDict) { - CFX_WideString csJS; - - CPDF_Object* pJS = pJSDict->GetElementValue("Before"); - if (pJS != NULL) { - if (pJS->IsString()) - csJS = pJSDict->GetUnicodeText("Before"); - else if (pJS->GetType() == PDFOBJ_STREAM) - csJS = pJS->GetUnicodeText(); - } - } - } - } - delete pFDFDocument; - } - - sBuffer.ReleaseBuffer(); -} - FX_BOOL CPDFSDK_InterForm::FDFToURLEncodedData(CFX_WideString csFDFFile, CFX_WideString csTxtFile) { return TRUE; |