summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-03-19 14:43:32 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-03-26 09:44:04 +0000
commit832ebf45a1746c3f39e3ac1dc744582de084e43a (patch)
tree9e34f998b3c0f4b64193da0d342d3e62b1f2c541
parent95e89e1801f09f1ebed48035347a45c2d627a6d2 (diff)
Remove unused methods from utils.h
Bug: 329379384 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I645b90c35a4b077e95aa2674e816368cc8a9f157
-rw-r--r--libartbase/base/utils.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/libartbase/base/utils.h b/libartbase/base/utils.h
index 106c65a2ca..92956bc8e9 100644
--- a/libartbase/base/utils.h
+++ b/libartbase/base/utils.h
@@ -84,10 +84,6 @@ class VoidFunctor {
inline void operator()([[maybe_unused]] A a, [[maybe_unused]] B b, [[maybe_unused]] C c) const {}
};
-inline bool TestBitmap(size_t idx, const uint8_t* bitmap) {
- return ((bitmap[idx / kBitsPerByte] >> (idx % kBitsPerByte)) & 0x01) != 0;
-}
-
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
@@ -129,18 +125,6 @@ bool IsKernelVersionAtLeast(int reqd_major, int reqd_minor);
// On some old kernels, a cache operation may segfault.
WARN_UNUSED bool CacheOperationsMaySegFault();
-// Return -1 if <, 0 if ==, 1 if >.
-template <typename T>
-inline static int32_t Compare(T lhs, T rhs) {
- return (lhs < rhs) ? -1 : ((lhs == rhs) ? 0 : 1);
-}
-
-// Return -1 if < 0, 0 if == 0, 1 if > 0.
-template <typename T>
-inline static int32_t Signum(T opnd) {
- return (opnd < 0) ? -1 : ((opnd == 0) ? 0 : 1);
-}
-
template <typename Func, typename... Args>
static inline void CheckedCall(const Func& function, const char* what, Args... args) {
int rc = function(args...);