From 10c406e461d56567dcbe142294ef88f097312474 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 14 Feb 2022 12:14:57 -0800 Subject: [PATCH] Remove unused InputMethod#setCurrentHideInputToken() This is a clean up CL to our previous CL [1], which introduced an unused @hide method InputMethod#setCurrentHideInputToken(). Since that method has never been called, there should be no behavior change in this CL. [1]: Ia596a392eb73ae46debd097151c8c9a7edd59833 44e2ae4afc30b6a873e1536e31619db258f6cf00 Bug: 133381284 Bug: 149870112 Bug: 192412909 Test: presubmit Change-Id: I8906360dc51ad3468b9ce4c97d477ae9bcdb2e91 --- .../android/inputmethodservice/InputMethodService.java | 9 --------- core/java/android/view/inputmethod/InputMethod.java | 8 -------- 2 files changed, 17 deletions(-) diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index adf2759a8cd8a..ca7f7495b277a 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -998,15 +998,6 @@ public class InputMethodService extends AbstractInputMethodService { public void setCurrentShowInputToken(IBinder showInputToken) { mCurShowInputToken = showInputToken; } - - /** - * {@inheritDoc} - * @hide - */ - @Override - public void setCurrentHideInputToken(IBinder hideInputToken) { - mCurHideInputToken = hideInputToken; - } } /** diff --git a/core/java/android/view/inputmethod/InputMethod.java b/core/java/android/view/inputmethod/InputMethod.java index 08cc31c8534f8..f7c7caf4b95e8 100644 --- a/core/java/android/view/inputmethod/InputMethod.java +++ b/core/java/android/view/inputmethod/InputMethod.java @@ -398,14 +398,6 @@ public interface InputMethod { */ public void setCurrentShowInputToken(IBinder showInputToken); - /** - * Update token of the client window requesting {@link #hideSoftInput(int, ResultReceiver)} - * @param hideInputToken placeholder app window token for window requesting - * {@link InputMethodManager#hideSoftInputFromWindow(IBinder, int)} - * @hide - */ - public void setCurrentHideInputToken(IBinder hideInputToken); - /** * Checks if IME is ready to start stylus handwriting session. * If yes, {@link #startStylusHandwriting(InputChannel, List)} is called.