From e4f104afdddb07ff70793fae815afab8c21fe202 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Wed, 5 Oct 2022 15:00:03 -0700 Subject: [PATCH] Remove IMMS#mHasFeature, which is unused This CL removes InputMethodManagerService#mHasFeature, which is not used. There should be no observable behavior change in this CL. Bug: 234882948 Test: presubmit Change-Id: I9444e2c5e2f3ab4491eb880e3f8b0f6da826ef45 --- .../android/server/inputmethod/InputMethodManagerService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index ab05e034562b2..75e633364e0aa 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -302,7 +302,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub final ImePlatformCompatUtils mImePlatformCompatUtils; final InputMethodDeviceConfigs mInputMethodDeviceConfigs; private final DisplayManagerInternal mDisplayManagerInternal; - final boolean mHasFeature; private final ArrayMap> mAdditionalSubtypeMap = new ArrayMap<>(); private final UserManager mUserManager; @@ -1730,8 +1729,6 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub mDisplayManagerInternal = LocalServices.getService(DisplayManagerInternal.class); mUserManager = mContext.getSystemService(UserManager.class); mUserManagerInternal = LocalServices.getService(UserManagerInternal.class); - mHasFeature = context.getPackageManager().hasSystemFeature( - PackageManager.FEATURE_INPUT_METHODS); mSlotIme = mContext.getString(com.android.internal.R.string.status_bar_ime);