From aa17f57127d053c037b3011d33109cd3c150155e Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 21 Nov 2016 06:41:33 -0800 Subject: Remove form resize type The m_eResizeType variable is set but never read. Removed. Review-Url: https://codereview.chromium.org/2508263002 --- xfa/fwl/core/ifwl_form.cpp | 4 ---- xfa/fwl/core/ifwl_form.h | 6 ------ 2 files changed, 10 deletions(-) diff --git a/xfa/fwl/core/ifwl_form.cpp b/xfa/fwl/core/ifwl_form.cpp index a91e597cf7..22c188ab7a 100644 --- a/xfa/fwl/core/ifwl_form.cpp +++ b/xfa/fwl/core/ifwl_form.cpp @@ -54,7 +54,6 @@ IFWL_Form::IFWL_Form(const IFWL_App* app, m_fCYBorder(0), m_iCaptureBtn(-1), m_iSysBox(0), - m_eResizeType(FORM_RESIZETYPE_None), m_bLButtonDown(false), m_bMaximized(false), m_bSetMaximize(false), @@ -730,7 +729,6 @@ void IFWL_Form::OnDrawWidget(CFX_Graphics* pGraphics, void IFWL_Form::OnLButtonDown(CFWL_MsgMouse* pMsg) { SetGrab(true); m_bLButtonDown = true; - m_eResizeType = FORM_RESIZETYPE_None; CFWL_SysBtn* pPressBtn = GetSysBtnAtPoint(pMsg->m_fx, pMsg->m_fy); m_iCaptureBtn = GetSysBtnIndex(pPressBtn); @@ -743,8 +741,6 @@ void IFWL_Form::OnLButtonDown(CFWL_MsgMouse* pMsg) { if (pPressBtn) { pPressBtn->SetPressed(); Repaint(&pPressBtn->m_rtBtn); - } else if (rtCap.Contains(pMsg->m_fx, pMsg->m_fy)) { - m_eResizeType = FORM_RESIZETYPE_Cap; } m_InfoStart.m_ptStart = CFX_PointF(pMsg->m_fx, pMsg->m_fy); diff --git a/xfa/fwl/core/ifwl_form.h b/xfa/fwl/core/ifwl_form.h index d4244d5354..c71bb1816e 100644 --- a/xfa/fwl/core/ifwl_form.h +++ b/xfa/fwl/core/ifwl_form.h @@ -55,11 +55,6 @@ class CFWL_SysBtn { uint32_t m_dwState; }; -enum FORM_RESIZETYPE { - FORM_RESIZETYPE_None = 0, - FORM_RESIZETYPE_Cap, -}; - struct RestoreInfo { RestoreInfo(); ~RestoreInfo(); @@ -154,7 +149,6 @@ class IFWL_Form : public IFWL_Widget { FX_FLOAT m_fCYBorder; int32_t m_iCaptureBtn; int32_t m_iSysBox; - int32_t m_eResizeType; bool m_bLButtonDown; bool m_bMaximized; bool m_bSetMaximize; -- cgit v1.2.3