summaryrefslogtreecommitdiff
path: root/runtime/mirror/dex_cache-inl.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2018-02-07 15:29:27 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2018-02-07 15:29:27 +0000
commit8b5d15219eb1a87709701a824b46595ce3deee13 (patch)
tree7e71e18b0f046b48a923dbf37c982f7279eae28d /runtime/mirror/dex_cache-inl.h
parentbae3065e57e2e82aa29d6207312c5ba38cff7426 (diff)
Remove unused methods.
Test: m Change-Id: I084f1442ef51b35f70cf0594b7affca49ae8c772
Diffstat (limited to 'runtime/mirror/dex_cache-inl.h')
-rw-r--r--runtime/mirror/dex_cache-inl.h25
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,