summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_resolvenode_rs.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-04 19:02:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-04 19:02:16 +0000
commitaeb5246e6293a5d25973405f5602c46aa81f7dfd (patch)
treeaf377924d4caf18c36812f86ce0354f0282ea41c /xfa/fxfa/parser/xfa_resolvenode_rs.h
parent9256ad5784fc437f60fbeb836fe2ecd18e028a5d (diff)
downloadpdfium-aeb5246e6293a5d25973405f5602c46aa81f7dfd.tar.xz
Remove CXFA_ValueArray
This CL removes the CXFA_ValueArray. Some of the code in XFA_RESOLVENODE_RS is duplicated, but the duplication makes the code clearer. Change-Id: I7495bb8c614a3d8919bfca858866932774f13fd8 Reviewed-on: https://pdfium-review.googlesource.com/20350 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_resolvenode_rs.h')
-rw-r--r--xfa/fxfa/parser/xfa_resolvenode_rs.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/xfa/fxfa/parser/xfa_resolvenode_rs.h b/xfa/fxfa/parser/xfa_resolvenode_rs.h
index c5cdeee06f..2eaab5dff4 100644
--- a/xfa/fxfa/parser/xfa_resolvenode_rs.h
+++ b/xfa/fxfa/parser/xfa_resolvenode_rs.h
@@ -15,7 +15,6 @@
#include "third_party/base/ptr_util.h"
#include "xfa/fxfa/fxfa.h"
#include "xfa/fxfa/parser/cxfa_object.h"
-#include "xfa/fxfa/parser/cxfa_valuearray.h"
#define XFA_RESOLVENODE_Children 0x0001
#define XFA_RESOLVENODE_Attributes 0x0004
@@ -41,20 +40,6 @@ struct XFA_RESOLVENODE_RS {
XFA_RESOLVENODE_RS();
~XFA_RESOLVENODE_RS();
- size_t GetAttributeResult(CXFA_ValueArray* valueArray) const {
- if (pScriptAttribute &&
- pScriptAttribute->eValueType == XFA_ScriptType::Object) {
- for (CXFA_Object* pObject : objects) {
- auto pValue = pdfium::MakeUnique<CFXJSE_Value>(valueArray->m_pIsolate);
- CJX_Object* jsObject = pObject->JSObject();
- (jsObject->*(pScriptAttribute->callback))(pValue.get(), false,
- pScriptAttribute->attribute);
- valueArray->m_Values.push_back(std::move(pValue));
- }
- }
- return valueArray->m_Values.size();
- }
-
std::vector<CXFA_Object*> objects; // Not owned.
XFA_RESOLVENODE_RSTYPE dwFlags;
const XFA_SCRIPTATTRIBUTEINFO* pScriptAttribute;