From 71c14c451702ea4550b275d562bff10c0843de94 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Fri, 21 Jan 2022 07:44:12 -0800 Subject: [PATCH] Remove IMMS#executeOrSendMessage(IInputMethod, Message) Now that no one is using InputMethodManagerService#executeOrSendMessage(IInputMethod,Message) we can safely remove it. Fix: 215609403 Test: presubmit Change-Id: Ifd5899c3b8372db508b814d137d97a9f2356648b --- .../server/inputmethod/InputMethodManagerService.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index 58c064597546f..e36c9fb2be576 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -2209,16 +2209,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } } - // TODO(b/215609403): This method will be removed soon! - private void executeOrSendMessage(IInputMethod target, Message msg) { - if (target.asBinder() instanceof Binder) { - throw new UnsupportedOperationException( - "InputMethodService is not supported to run in the system_server"); - } - handleMessage(msg); - msg.recycle(); - } - private void executeOrSendMessage(IInputMethodClient target, Message msg) { if (target.asBinder() instanceof Binder) { // This is supposed to be emulating the one-way semantics when the IME client is