diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-21 06:41:33 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-21 06:41:33 -0800 |
commit | aa17f57127d053c037b3011d33109cd3c150155e (patch) | |
tree | 0b8a125714d7ff466b21313ff1e1eb13b255da8f | |
parent | 3702566e4286d2e2e316563080217c0aecfae866 (diff) | |
download | pdfium-aa17f57127d053c037b3011d33109cd3c150155e.tar.xz |
Remove form resize type
The m_eResizeType variable is set but never read. Removed.
Review-Url: https://codereview.chromium.org/2508263002
-rw-r--r-- | xfa/fwl/core/ifwl_form.cpp | 4 | ||||
-rw-r--r-- | xfa/fwl/core/ifwl_form.h | 6 |
2 files changed, 0 insertions, 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; |