Remove InputMethodUtils#getApiCallStack()

This method is no longer used.

Bug: 234882948
Test: presubmit
Change-Id: I67ae679b6256ed679e135acaf1dad99254485e4c
This commit is contained in:
Yohei Yukawa
2022-10-04 07:36:29 -07:00
parent 10b858c39f
commit 6541769f49

View File

@@ -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) {