diff options
| author | 2018-02-08 13:28:42 +0000 | |
|---|---|---|
| committer | 2018-02-08 13:28:42 +0000 | |
| commit | d96e802dae28843d49f27fef3e506df995172d50 (patch) | |
| tree | 01e25bf7954b42f4032b931bbac253cf658b7101 /runtime/mirror/dex_cache-inl.h | |
| parent | 30ca8e35c55ea3cdb290c9df75c91714dd2aea63 (diff) | |
| parent | 8b5d15219eb1a87709701a824b46595ce3deee13 (diff) | |
Merge "Remove unused methods."
Diffstat (limited to 'runtime/mirror/dex_cache-inl.h')
| -rw-r--r-- | runtime/mirror/dex_cache-inl.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/runtime/mirror/dex_cache-inl.h b/runtime/mirror/dex_cache-inl.h index 573244ef17..3ffedcac4b 100644 --- a/runtime/mirror/dex_cache-inl.h +++ b/runtime/mirror/dex_cache-inl.h @@ -243,31 +243,6 @@ inline void DexCache::ClearResolvedMethod(uint32_t method_idx, PointerSize ptr_s } } -template <typename PtrType> -inline PtrType DexCache::GetElementPtrSize(PtrType* ptr_array, size_t idx, PointerSize ptr_size) { - if (ptr_size == PointerSize::k64) { - uint64_t element = reinterpret_cast<const uint64_t*>(ptr_array)[idx]; - return reinterpret_cast<PtrType>(dchecked_integral_cast<uintptr_t>(element)); - } else { - uint32_t element = reinterpret_cast<const uint32_t*>(ptr_array)[idx]; - return reinterpret_cast<PtrType>(dchecked_integral_cast<uintptr_t>(element)); - } -} - -template <typename PtrType> -inline void DexCache::SetElementPtrSize(PtrType* ptr_array, - size_t idx, - PtrType ptr, - PointerSize ptr_size) { - if (ptr_size == PointerSize::k64) { - reinterpret_cast<uint64_t*>(ptr_array)[idx] = - dchecked_integral_cast<uint64_t>(reinterpret_cast<uintptr_t>(ptr)); - } else { - reinterpret_cast<uint32_t*>(ptr_array)[idx] = - dchecked_integral_cast<uint32_t>(reinterpret_cast<uintptr_t>(ptr)); - } -} - template <typename T> NativeDexCachePair<T> DexCache::GetNativePairPtrSize(std::atomic<NativeDexCachePair<T>>* pair_array, size_t idx, |