From c7056ca0027eb34ed9abf31338c4cd2ffff40528 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Thu, 9 Nov 2017 22:04:17 +0000 Subject: Remove a couple of unused methods in CXFA_FFWidget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL removes two unused methods in CXFA_FFWidget and also the code that becomes unused after removing those. Change-Id: Ifa58a7cabc1750bb13942f86385414e8f5e0cce3 Reviewed-on: https://pdfium-review.googlesource.com/18310 Reviewed-by: Ryan Harrison Commit-Queue: Nicolás Peña Moreno --- xfa/fxfa/parser/cxfa_assistdata.cpp | 15 --------------- xfa/fxfa/parser/cxfa_assistdata.h | 22 ---------------------- xfa/fxfa/parser/cxfa_tooltipdata.cpp | 15 --------------- xfa/fxfa/parser/cxfa_tooltipdata.h | 22 ---------------------- xfa/fxfa/parser/cxfa_widgetdata.cpp | 5 ----- xfa/fxfa/parser/cxfa_widgetdata.h | 2 -- 6 files changed, 81 deletions(-) delete mode 100644 xfa/fxfa/parser/cxfa_assistdata.cpp delete mode 100644 xfa/fxfa/parser/cxfa_assistdata.h delete mode 100644 xfa/fxfa/parser/cxfa_tooltipdata.cpp delete mode 100644 xfa/fxfa/parser/cxfa_tooltipdata.h (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/cxfa_assistdata.cpp b/xfa/fxfa/parser/cxfa_assistdata.cpp deleted file mode 100644 index 051661f0c7..0000000000 --- a/xfa/fxfa/parser/cxfa_assistdata.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#include "xfa/fxfa/parser/cxfa_assistdata.h" - -#include "xfa/fxfa/parser/cxfa_node.h" - -CXFA_AssistData::CXFA_AssistData(CXFA_Node* pNode) : CXFA_Data(pNode) {} - -CXFA_ToolTipData CXFA_AssistData::GetToolTipData() { - return CXFA_ToolTipData(m_pNode->GetChild(0, XFA_Element::ToolTip, false)); -} diff --git a/xfa/fxfa/parser/cxfa_assistdata.h b/xfa/fxfa/parser/cxfa_assistdata.h deleted file mode 100644 index 8b37473483..0000000000 --- a/xfa/fxfa/parser/cxfa_assistdata.h +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef XFA_FXFA_PARSER_CXFA_ASSISTDATA_H_ -#define XFA_FXFA_PARSER_CXFA_ASSISTDATA_H_ - -#include "xfa/fxfa/parser/cxfa_data.h" -#include "xfa/fxfa/parser/cxfa_tooltipdata.h" - -class CXFA_Node; - -class CXFA_AssistData : public CXFA_Data { - public: - explicit CXFA_AssistData(CXFA_Node* pNode); - - CXFA_ToolTipData GetToolTipData(); -}; - -#endif // XFA_FXFA_PARSER_CXFA_ASSISTDATA_H_ diff --git a/xfa/fxfa/parser/cxfa_tooltipdata.cpp b/xfa/fxfa/parser/cxfa_tooltipdata.cpp deleted file mode 100644 index 6e2ceb5abc..0000000000 --- a/xfa/fxfa/parser/cxfa_tooltipdata.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#include "xfa/fxfa/parser/cxfa_tooltipdata.h" - -#include "xfa/fxfa/parser/cxfa_node.h" - -CXFA_ToolTipData::CXFA_ToolTipData(CXFA_Node* pNode) : CXFA_Data(pNode) {} - -bool CXFA_ToolTipData::GetTip(WideString& wsTip) { - return m_pNode->JSNode()->TryContent(wsTip, false, true); -} diff --git a/xfa/fxfa/parser/cxfa_tooltipdata.h b/xfa/fxfa/parser/cxfa_tooltipdata.h deleted file mode 100644 index 447bf8154f..0000000000 --- a/xfa/fxfa/parser/cxfa_tooltipdata.h +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2016 PDFium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef XFA_FXFA_PARSER_CXFA_TOOLTIPDATA_H_ -#define XFA_FXFA_PARSER_CXFA_TOOLTIPDATA_H_ - -#include "core/fxcrt/fx_string.h" -#include "xfa/fxfa/parser/cxfa_data.h" - -class CXFA_Node; - -class CXFA_ToolTipData : public CXFA_Data { - public: - explicit CXFA_ToolTipData(CXFA_Node* pNode); - - bool GetTip(WideString& wsTip); -}; - -#endif // XFA_FXFA_PARSER_CXFA_TOOLTIPDATA_H_ diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index d131b310cc..679ef05212 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -359,11 +359,6 @@ CXFA_BindData CXFA_WidgetData::GetBindData() { m_pNode->JSNode()->GetProperty(0, XFA_Element::Bind, false)); } -CXFA_AssistData CXFA_WidgetData::GetAssistData() { - return CXFA_AssistData( - m_pNode->JSNode()->GetProperty(0, XFA_Element::Assist, false)); -} - bool CXFA_WidgetData::GetWidth(float& fWidth) { return TryMeasure(XFA_Attribute::W, fWidth); } diff --git a/xfa/fxfa/parser/cxfa_widgetdata.h b/xfa/fxfa/parser/cxfa_widgetdata.h index 6de00edea1..dd9e1d9a66 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/xfa/fxfa/parser/cxfa_widgetdata.h @@ -12,7 +12,6 @@ #include "core/fxcrt/fx_coordinates.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" -#include "xfa/fxfa/parser/cxfa_assistdata.h" #include "xfa/fxfa/parser/cxfa_binddata.h" #include "xfa/fxfa/parser/cxfa_borderdata.h" #include "xfa/fxfa/parser/cxfa_calculatedata.h" @@ -49,7 +48,6 @@ class CXFA_WidgetData : public CXFA_Data { int32_t GetAccess(); int32_t GetRotate(); - CXFA_AssistData GetAssistData(); CXFA_BorderData GetBorderData(bool bModified); CXFA_CaptionData GetCaptionData(); CXFA_FontData GetFontData(bool bModified); -- cgit v1.2.3