From 4913cf39dc3a15211e3a13bdc685541babc93d6d Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 4 Jul 2017 13:51:09 +0100 Subject: Remove obsolete helpers from CompilerDriver. Test: Rely on TreeHugger. Change-Id: Id177ed422353a8606c3e57d34e1519e6b17e5c48 --- compiler/driver/compiler_driver-inl.h | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'compiler/driver/compiler_driver-inl.h') diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index 8cc1cc38e2..a04349e392 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -102,35 +102,6 @@ inline std::pair CompilerDriver::IsFastInstanceField( return std::make_pair(fast_get, fast_put); } -template -inline bool CompilerDriver::CanAccessResolvedMember(mirror::Class* referrer_class ATTRIBUTE_UNUSED, - mirror::Class* access_to ATTRIBUTE_UNUSED, - ArtMember* member ATTRIBUTE_UNUSED, - mirror::DexCache* dex_cache ATTRIBUTE_UNUSED, - uint32_t field_idx ATTRIBUTE_UNUSED) { - // Not defined for ArtMember values other than ArtField or ArtMethod. - UNREACHABLE(); -} - -template <> -inline bool CompilerDriver::CanAccessResolvedMember(mirror::Class* referrer_class, - mirror::Class* access_to, - ArtField* field, - mirror::DexCache* dex_cache, - uint32_t field_idx) { - return referrer_class->CanAccessResolvedField(access_to, field, dex_cache, field_idx); -} - -template <> -inline bool CompilerDriver::CanAccessResolvedMember( - mirror::Class* referrer_class, - mirror::Class* access_to, - ArtMethod* method, - mirror::DexCache* dex_cache, - uint32_t field_idx) { - return referrer_class->CanAccessResolvedMethod(access_to, method, dex_cache, field_idx); -} - inline ArtMethod* CompilerDriver::ResolveMethod( ScopedObjectAccess& soa, Handle dex_cache, Handle class_loader, const DexCompilationUnit* mUnit, -- cgit v1.2.3-59-g8ed1b