diff options
Diffstat (limited to 'runtime/method_helper-inl.h')
-rw-r--r-- | runtime/method_helper-inl.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/runtime/method_helper-inl.h b/runtime/method_helper-inl.h index 7a7949e0fa..2c18205ec0 100644 --- a/runtime/method_helper-inl.h +++ b/runtime/method_helper-inl.h @@ -20,9 +20,7 @@ #include "method_helper.h" #include "class_linker.h" -#include "mirror/object_array.h" -#include "runtime.h" -#include "thread-inl.h" +#include "dex_file-inl.h" namespace art { @@ -45,18 +43,6 @@ inline bool MethodHelperT<HandleKind>::HasSameNameAndSignature(MethodHelperT<Han return dex_file->GetMethodSignature(mid) == other_dex_file->GetMethodSignature(other_mid); } -template <template <class T> class HandleKind> -inline mirror::Class* MethodHelperT<HandleKind>::GetClassFromTypeIdx(uint16_t type_idx, - bool resolve) { - mirror::ArtMethod* method = GetMethod(); - mirror::Class* type = method->GetDexCacheResolvedType(type_idx); - if (type == nullptr && resolve) { - type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method); - CHECK(type != nullptr || Thread::Current()->IsExceptionPending()); - } - return type; -} - } // namespace art #endif // ART_RUNTIME_METHOD_HELPER_INL_H_ |