From c5b40ba5c4f993fa2445ad7db0c98de80aa43514 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 5 Jan 2016 17:05:31 -0800 Subject: Merge to XFA: Document::DoAnnotDelay and m_DelayAnnotData member unused. Orignal Review URL: https://codereview.chromium.org/1565613002 . (cherry picked from commit 685c3130da63bd1eea1281f29bf1ee4f22f03129) R=thestig@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1562653002 . --- fpdfsdk/src/javascript/Document.cpp | 13 ------------- fpdfsdk/src/javascript/Document.h | 3 --- 2 files changed, 16 deletions(-) (limited to 'fpdfsdk/src') diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp index 0a85cece89..9a434a5db7 100644 --- a/fpdfsdk/src/javascript/Document.cpp +++ b/fpdfsdk/src/javascript/Document.cpp @@ -159,7 +159,6 @@ Document::~Document() { } m_DelayData.RemoveAll(); - m_DelayAnnotData.RemoveAll(); } // the total number of fileds in document. @@ -1700,18 +1699,6 @@ void Document::DoFieldDelay(const CFX_WideString& sFieldName, } } -void Document::AddDelayAnnotData(CJS_AnnotObj* pData) { - m_DelayAnnotData.Add(pData); -} - -void Document::DoAnnotDelay() { - CFX_DWordArray DelArray; - - for (int j = DelArray.GetSize() - 1; j >= 0; j--) { - m_DelayData.RemoveAt(DelArray[j]); - } -} - CJS_Document* Document::GetCJSDoc() const { return static_cast(m_pJSObject); } diff --git a/fpdfsdk/src/javascript/Document.h b/fpdfsdk/src/javascript/Document.h index 350ab05682..94860fc425 100644 --- a/fpdfsdk/src/javascript/Document.h +++ b/fpdfsdk/src/javascript/Document.h @@ -267,8 +267,6 @@ class Document : public CJS_EmbedObj { CFX_ByteString& strFolderName); void AddDelayData(CJS_DelayData* pData); void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex); - void AddDelayAnnotData(CJS_AnnotObj* pData); - void DoAnnotDelay(); void SetIsolate(v8::Isolate* isolate) { m_isolate = isolate; } CJS_Document* GetCJSDoc() const; @@ -285,7 +283,6 @@ class Document : public CJS_EmbedObj { CFX_WideString m_cwBaseURL; bool m_bDelay; CFX_ArrayTemplate m_DelayData; - CFX_ArrayTemplate m_DelayAnnotData; }; class CJS_Document : public CJS_Object { -- cgit v1.2.3