Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: fpdfsdk/src/fsdk_baseform.cpp

Issue 1416283002: Merge to XFA: Remove unused CPDFSDK_InterForm::DoFDFBuffer. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fsdk_baseform.cpp
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index 024287d706db021e90583cdf9b8013c4a421636b..2341cfcfceebecae1a0a4844b2ecded32fbfa874 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;
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698