From 27a36690573db0e63b0f36cb250c6d9e92579bd7 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 12 Dec 2017 18:32:08 +0000 Subject: 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 Commit-Queue: dsinclair --- fxjs/xfa/cjx_node.cpp | 30 ------------------------------ fxjs/xfa/cjx_node.h | 9 --------- 2 files changed, 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); -- cgit v1.2.3