diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-21 06:54:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 06:54:54 -0800 |
commit | 88cb0a32586cae4d00654c679dbb41fa0133c3e5 (patch) | |
tree | 1fae2367864f592b70c0215a6596c7db80fc5420 /xfa/fwl/core/ifwl_form.cpp | |
parent | aa17f57127d053c037b3011d33109cd3c150155e (diff) | |
download | pdfium-88cb0a32586cae4d00654c679dbb41fa0133c3e5.tar.xz |
Remove unread m_InfoStart from IFWL_Form.
The m_InfoStart variable has values set but never read. Removed.
Review-Url: https://codereview.chromium.org/2513673002
Diffstat (limited to 'xfa/fwl/core/ifwl_form.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_form.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/xfa/fwl/core/ifwl_form.cpp b/xfa/fwl/core/ifwl_form.cpp index 22c188ab7a..83fba1fd04 100644 --- a/xfa/fwl/core/ifwl_form.cpp +++ b/xfa/fwl/core/ifwl_form.cpp @@ -34,10 +34,6 @@ const uint8_t kCornerEnlarge = 10; } // namespace -RestoreInfo::RestoreInfo() {} - -RestoreInfo::~RestoreInfo() {} - IFWL_Form::IFWL_Form(const IFWL_App* app, std::unique_ptr<CFWL_WidgetProperties> properties, IFWL_Widget* pOuter) @@ -738,14 +734,11 @@ void IFWL_Form::OnLButtonDown(CFWL_MsgMouse* pMsg) { m_rtCaption.width - kSystemButtonSize * m_iSysBox - 2 * m_fCYBorder, m_rtCaption.height - m_fCXBorder); - if (pPressBtn) { - pPressBtn->SetPressed(); - Repaint(&pPressBtn->m_rtBtn); - } + if (!pPressBtn) + return; - m_InfoStart.m_ptStart = CFX_PointF(pMsg->m_fx, pMsg->m_fy); - m_InfoStart.m_szStart = CFX_SizeF(m_pProperties->m_rtWidget.width, - m_pProperties->m_rtWidget.height); + pPressBtn->SetPressed(); + Repaint(&pPressBtn->m_rtBtn); } void IFWL_Form::OnLButtonUp(CFWL_MsgMouse* pMsg) { |