summaryrefslogtreecommitdiff
path: root/libartbase/base/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/utils.h')
-rw-r--r--libartbase/base/utils.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/libartbase/base/utils.h b/libartbase/base/utils.h
index 5e04cb0074..106c65a2ca 100644
--- a/libartbase/base/utils.h
+++ b/libartbase/base/utils.h
@@ -88,10 +88,6 @@ inline bool TestBitmap(size_t idx, const uint8_t* bitmap) {
return ((bitmap[idx / kBitsPerByte] >> (idx % kBitsPerByte)) & 0x01) != 0;
}
-static inline constexpr bool ValidPointerSize(size_t pointer_size) {
- return pointer_size == 4 || pointer_size == 8;
-}
-
static inline const void* EntryPointToCodePointer(const void* entry_point) {
uintptr_t code = reinterpret_cast<uintptr_t>(entry_point);
// TODO: Make this Thumb2 specific. It is benign on other architectures as code is always at
@@ -133,16 +129,6 @@ bool IsKernelVersionAtLeast(int reqd_major, int reqd_minor);
// On some old kernels, a cache operation may segfault.
WARN_UNUSED bool CacheOperationsMaySegFault();
-template <typename T>
-constexpr PointerSize ConvertToPointerSize(T any) {
- if (any == 4 || any == 8) {
- return static_cast<PointerSize>(any);
- } else {
- LOG(FATAL);
- UNREACHABLE();
- }
-}
-
// Return -1 if <, 0 if ==, 1 if >.
template <typename T>
inline static int32_t Compare(T lhs, T rhs) {