From ae61e637cd3faa1518b9b0a4f9f8eb7a3356abf5 Mon Sep 17 00:00:00 2001 From: Wilson Wu Date: Fri, 24 Jun 2022 11:56:09 +0800 Subject: [PATCH] Remove unused code in InputMethodManager Those logic add by CL[1] and not used now. [1]: I098df41f935438bf1889fb030c7a3e7a0645a168 Bug: 236920321 Test: presubmit Change-Id: Ifa055b0fbf7395906d6880d77230c1cfe494e7b2 --- core/java/android/view/inputmethod/InputMethodManager.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 73d6241c21d1e..6fa3b59648afa 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -652,7 +652,6 @@ public final class InputMethodManager { public boolean startInput(@StartInputReason int startInputReason, View focusedView, @StartInputFlags int startInputFlags, @SoftInputModeFlags int softInputMode, int windowFlags) { - final View servedView; ImeTracing.getInstance().triggerClientDump( "InputMethodManager.DelegateImpl#startInput", InputMethodManager.this, null /* icProto */); @@ -660,7 +659,6 @@ public final class InputMethodManager { mCurrentTextBoxAttribute = null; mCompletions = null; mServedConnecting = true; - servedView = getServedViewLocked(); } return startInputInner(startInputReason, focusedView != null ? focusedView.getWindowToken() : null, startInputFlags,