diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-12 18:32:08 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-12 18:32:08 +0000 |
commit | 27a36690573db0e63b0f36cb250c6d9e92579bd7 (patch) | |
tree | edfb0caacd36521c0fc8f5a7f83d19a7912154ce | |
parent | 3c78c03813f040640a15efe6d1646d21cb73b773 (diff) | |
download | pdfium-27a36690573db0e63b0f36cb250c6d9e92579bd7.tar.xz |
Remove unused script attribute methods
This CL removes unused CJX_Node::Script_Attribute*Read methods.
Change-Id: If85b6de881423fa826dec64cb63bb79e5e14f569
Reviewed-on: https://pdfium-review.googlesource.com/20971
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r-- | fxjs/xfa/cjx_node.cpp | 30 | ||||
-rw-r--r-- | fxjs/xfa/cjx_node.h | 9 |
2 files changed, 0 insertions, 39 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp index 1117a67ef3..d342604c11 100644 --- a/fxjs/xfa/cjx_node.cpp +++ b/fxjs/xfa/cjx_node.cpp @@ -605,36 +605,6 @@ void CJX_Node::Script_Attribute_Integer(CFXJSE_Value* pValue, pValue->SetInteger(GetInteger(eAttribute)); } -void CJX_Node::Script_Attribute_IntegerRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute) { - if (bSetting) { - ThrowInvalidPropertyException(); - return; - } - pValue->SetInteger(GetInteger(eAttribute)); -} - -void CJX_Node::Script_Attribute_BOOLRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute) { - if (bSetting) { - ThrowInvalidPropertyException(); - return; - } - pValue->SetString(GetBoolean(eAttribute) ? "1" : "0"); -} - -void CJX_Node::Script_Attribute_StringRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute) { - if (bSetting) { - ThrowInvalidPropertyException(); - return; - } - pValue->SetString(GetAttribute(eAttribute).UTF8Encode().AsStringView()); -} - void CJX_Node::Script_Delta_CurrentValue(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute) {} diff --git a/fxjs/xfa/cjx_node.h b/fxjs/xfa/cjx_node.h index a7310c65b4..0b2a0b6f20 100644 --- a/fxjs/xfa/cjx_node.h +++ b/fxjs/xfa/cjx_node.h @@ -111,15 +111,6 @@ class CJX_Node : public CJX_Tree { void Script_Attribute_Integer(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); - void Script_Attribute_IntegerRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute); - void Script_Attribute_BOOLRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute); - void Script_Attribute_StringRead(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute); void Script_Som_ValidationMessage(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); |