summaryrefslogtreecommitdiff
path: root/runtime/base/enums.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/enums.h')
-rw-r--r--runtime/base/enums.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/runtime/base/enums.h b/runtime/base/enums.h
index 51b86eae2b..52cab2a9c0 100644
--- a/runtime/base/enums.h
+++ b/runtime/base/enums.h
@@ -20,9 +20,6 @@
#include <cstddef>
#include <ostream>
-#include "base/logging.h"
-#include "base/macros.h"
-
namespace art {
enum class PointerSize : size_t {
@@ -35,16 +32,6 @@ static constexpr PointerSize kRuntimePointerSize = sizeof(void*) == 8U
? PointerSize::k64
: PointerSize::k32;
-template <typename T>
-static constexpr PointerSize ConvertToPointerSize(T any) {
- if (any == 4 || any == 8) {
- return static_cast<PointerSize>(any);
- } else {
- LOG(FATAL);
- UNREACHABLE();
- }
-}
-
} // namespace art
#endif // ART_RUNTIME_BASE_ENUMS_H_