Remove unreachable return in CPWL_MsgControl::SetFocus().
Its only caller (below in this file) passes `this` and is hence
the argument is non-null.
Change-Id: I11bb209bcdd0bd5a81556efbb45f9613da28c38b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/85273
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/pwl/cpwl_wnd.cpp b/fpdfsdk/pwl/cpwl_wnd.cpp
index 705a405..7859f41 100644
--- a/fpdfsdk/pwl/cpwl_wnd.cpp
+++ b/fpdfsdk/pwl/cpwl_wnd.cpp
@@ -63,9 +63,6 @@
void SetFocus(CPWL_Wnd* pWnd) {
m_KeyboardPaths.clear();
- if (!pWnd)
- return;
-
m_pMainKeyboardWnd = pWnd;
CPWL_Wnd* pParent = pWnd;
while (pParent) {