From ce7a8158376dd81e2321a77a331dca5f451b471c Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Fri, 11 May 2018 18:37:26 +0000 Subject: Remove CFWL_WidgetMgr::IsFormDisabled(). This method always returns true, so make that assumption and clean up dead code. More cleanups will follow this one to remove the code that can now be inferred to be dead. Change-Id: I73f077561ab511a1c2c09ac6990ab5cdc5bfb055 Reviewed-on: https://pdfium-review.googlesource.com/32391 Reviewed-by: Ryan Harrison Reviewed-by: Tom Sepez Commit-Queue: Henrique Nakashima --- xfa/fwl/cfwl_checkbox.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'xfa/fwl/cfwl_checkbox.cpp') diff --git a/xfa/fwl/cfwl_checkbox.cpp b/xfa/fwl/cfwl_checkbox.cpp index 7e78efae63..290e59daae 100644 --- a/xfa/fwl/cfwl_checkbox.cpp +++ b/xfa/fwl/cfwl_checkbox.cpp @@ -179,21 +179,6 @@ void CFWL_CheckBox::NextStates() { if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_RadioButton) { if ((m_pProperties->m_dwStates & FWL_STATE_CKB_CheckMask) == FWL_STATE_CKB_Unchecked) { - CFWL_WidgetMgr* pWidgetMgr = GetOwnerApp()->GetWidgetMgr(); - if (!pWidgetMgr->IsFormDisabled()) { - std::vector radioarr = - pWidgetMgr->GetSameGroupRadioButton(this); - for (auto* pWidget : radioarr) { - CFWL_CheckBox* pCheckBox = static_cast(pWidget); - if (pCheckBox != this && - pCheckBox->GetStates() & FWL_STATE_CKB_Checked) { - pCheckBox->SetCheckState(0); - m_pWidgetMgr->RepaintWidget( - pCheckBox, CFX_RectF(0, 0, pCheckBox->GetWidgetRect().Size())); - break; - } - } - } m_pProperties->m_dwStates |= FWL_STATE_CKB_Checked; } } else { -- cgit v1.2.3