Remove CXFA_FFField::DrawFocus() method.
It is not called.
Change-Id: I8a5f188ee1f8e392511e9cb1e8898f132ac87885
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/80076
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/xfa/fxfa/cxfa_fffield.cpp b/xfa/fxfa/cxfa_fffield.cpp
index 068214f..b90ab57 100644
--- a/xfa/fxfa/cxfa_fffield.cpp
+++ b/xfa/fxfa/cxfa_fffield.cpp
@@ -111,22 +111,6 @@
pGS->FillPath(path, CFX_FillRenderOptions::FillType::kWinding, pMatrix);
}
-void CXFA_FFField::DrawFocus(CFGAS_GEGraphics* pGS, CFX_Matrix* pMatrix) {
- if (!GetLayoutItem()->TestStatusBits(XFA_WidgetStatus_Focused))
- return;
-
- pGS->SetStrokeColor(CFGAS_GEColor(0xFF000000));
-
- static constexpr float kDashPattern[2] = {1, 1};
- pGS->SetLineDash(0.0f, kDashPattern);
- pGS->SetLineWidth(0);
-
- CFGAS_GEPath path;
- path.AddRectangle(m_UIRect.left, m_UIRect.top, m_UIRect.width,
- m_UIRect.height);
- pGS->StrokePath(path, pMatrix);
-}
-
CFWL_Widget* CXFA_FFField::GetNormalWidget() {
return m_pNormalWidget;
}
diff --git a/xfa/fxfa/cxfa_fffield.h b/xfa/fxfa/cxfa_fffield.h
index 204b8c6..efe06ea 100644
--- a/xfa/fxfa/cxfa_fffield.h
+++ b/xfa/fxfa/cxfa_fffield.h
@@ -91,7 +91,6 @@
const CFX_Matrix& pMatrix,
HighlightOption highlight,
ShapeOption shape);
- void DrawFocus(CFGAS_GEGraphics* pGS, CFX_Matrix* pMatrix);
void SendMessageToFWLWidget(CFWL_Message* pMessage);
void CapPlacement();
void CapTopBottomPlacement(const CXFA_Margin* margin,