From 626c33cfeaa5137985125f19a04d04a64a16fe8c Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Thu, 22 Jul 2021 14:00:54 -0700 Subject: [PATCH] Remove unused methods and classes from Completable class This is hopefully the last follow up CL to my previous CL [1], which aimed to logically revert IInputMethodManager from emulated sync IPCs to truly sync IPCs. It turns out that my previous clean-up CL [2] forgot to take care of the following class com.android.internal.inputmethod.Completable, where several unused methods and classes still existed. Since those methods and classes are not used right now, there should be no user/developer visible behavior change in this CL. [1]: If16ac0de536d9089eb04f6e07b1ee47378124658 662b48b72d841119160ab5c1b03be1ea36f3351d [2]: I8666ac1399058b980e51e2459122b2f5f36c77b5 b1fb07a83bc134c68a95a63404607ddddd470e27 Bug: 192412909 Test: presubmit Change-Id: Id5d5a4abeff8291b40baf95d425f4035d3cddffe --- .../internal/inputmethod/Completable.java | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/core/java/com/android/internal/inputmethod/Completable.java b/core/java/com/android/internal/inputmethod/Completable.java index b419e267ab0c6..132272c68ca86 100644 --- a/core/java/com/android/internal/inputmethod/Completable.java +++ b/core/java/com/android/internal/inputmethod/Completable.java @@ -23,12 +23,10 @@ import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; import android.util.Log; -import android.view.inputmethod.InputMethodSubtype; import com.android.internal.annotations.GuardedBy; import java.lang.annotation.Retention; -import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; @@ -415,34 +413,6 @@ public final class Completable { return new Completable.SurroundingText(); } - /** - * @return an instance of {@link Completable.InputBindResult}. - */ - public static Completable.InputBindResult createInputBindResult() { - return new Completable.InputBindResult(); - } - - /** - * @return an instance of {@link Completable.InputMethodSubtype}. - */ - public static Completable.InputMethodSubtype createInputMethodSubtype() { - return new Completable.InputMethodSubtype(); - } - - /** - * @return an instance of {@link Completable.InputMethodSubtypeList}. - */ - public static Completable.InputMethodSubtypeList createInputMethodSubtypeList() { - return new Completable.InputMethodSubtypeList(); - } - - /** - * @return an instance of {@link Completable.InputMethodInfoList}. - */ - public static Completable.InputMethodInfoList createInputMethodInfoList() { - return new Completable.InputMethodInfoList(); - } - /** * @return an instance of {@link Completable.IInputContentUriToken}. */ @@ -479,30 +449,6 @@ public final class Completable { public static final class SurroundingText extends Values { } - /** - * Completable object of {@link com.android.internal.view.InputBindResult}. - */ - public static final class InputBindResult - extends Values { } - - /** - * Completable object of {@link android.view.inputmethod.InputMethodSubtype}. - */ - public static final class InputMethodSubtype - extends Values { } - - /** - * Completable object of {@link List}. - */ - public static final class InputMethodSubtypeList - extends Values> { } - - /** - * Completable object of {@link List}. - */ - public static final class InputMethodInfoList - extends Values> { } - /** * Completable object of {@link IInputContentUriToken>}. */