summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-10-22 11:08:42 -0400
committerDan Sinclair <dsinclair@chromium.org>2015-10-22 11:08:42 -0400
commit162f227af9c5e28885a36e6ca06a09c12c6223e0 (patch)
tree19b57e69acfba514c75c017bdb6118573b5e9172 /fpdfsdk
parentc2bfc000e502c42c9a3017038fd9104c7997d126 (diff)
downloadpdfium-162f227af9c5e28885a36e6ca06a09c12c6223e0.tar.xz
Remove unused CPDFSDK_InterForm::DoFDFBuffer.
This method isn't used anywhere and the implementation doesn't really do anything. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1405163003 .
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/include/fsdk_baseform.h1
-rw-r--r--fpdfsdk/src/fsdk_baseform.cpp30
2 files changed, 0 insertions, 31 deletions
diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h
index 204cb3b088..bc0edf2fa2 100644
--- a/fpdfsdk/include/fsdk_baseform.h
+++ b/fpdfsdk/include/fsdk_baseform.h
@@ -250,7 +250,6 @@ class CPDFSDK_InterForm : public CPDF_FormNotify {
FX_BOOL FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize);
int GetPageIndexByAnnotDict(CPDF_Document* pDocument,
CPDF_Dictionary* pAnnotDict) const;
- void DoFDFBuffer(CFX_ByteString sBuffer);
using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>;
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index 542ade022a..3b845b017e 100644
--- a/fpdfsdk/src/fsdk_baseform.cpp
+++ b/fpdfsdk/src/fsdk_baseform.cpp
@@ -2037,36 +2037,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;