From 6541769f4917777823db301e454df5636ba9159d Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Tue, 4 Oct 2022 07:36:29 -0700 Subject: [PATCH] Remove InputMethodUtils#getApiCallStack() This method is no longer used. Bug: 234882948 Test: presubmit Change-Id: I67ae679b6256ed679e135acaf1dad99254485e4c --- .../server/inputmethod/InputMethodUtils.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodUtils.java b/services/core/java/com/android/server/inputmethod/InputMethodUtils.java index beeaa90a3832c..0291add52dbf1 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodUtils.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodUtils.java @@ -79,29 +79,6 @@ final class InputMethodUtils { // This utility class is not publicly instantiable. } - // ---------------------------------------------------------------------- - // Utilities for debug - static String getApiCallStack() { - String apiCallStack = ""; - try { - throw new RuntimeException(); - } catch (RuntimeException e) { - final StackTraceElement[] frames = e.getStackTrace(); - for (int j = 1; j < frames.length; ++j) { - final String tempCallStack = frames[j].toString(); - if (TextUtils.isEmpty(apiCallStack)) { - // Overwrite apiCallStack if it's empty - apiCallStack = tempCallStack; - } else if (tempCallStack.indexOf("Transact(") < 0) { - // Overwrite apiCallStack if it's not a binder call - apiCallStack = tempCallStack; - } else { - break; - } - } - } - return apiCallStack; - } // ---------------------------------------------------------------------- static boolean canAddToLastInputMethod(InputMethodSubtype subtype) {