From 69ccc2db96b8a66959db46e4b4b9e6bd8e58d94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 25 Nov 2025 16:51:19 +0100 Subject: [PATCH] [clang][bytecode][NFC] Remove unused Integral range functions --- clang/lib/AST/ByteCode/Integral.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/clang/lib/AST/ByteCode/Integral.h b/clang/lib/AST/ByteCode/Integral.h index 5bf6621874e69..e90f1a9a74e1c 100644 --- a/clang/lib/AST/ByteCode/Integral.h +++ b/clang/lib/AST/ByteCode/Integral.h @@ -217,10 +217,6 @@ template class Integral final { return Integral(Value.V); } - static bool inRange(int64_t Value, unsigned NumBits) { - return CheckRange(Value); - } - static bool increment(Integral A, Integral *R) { return add(A, Integral(ReprT(1)), A.bitWidth(), R); } @@ -323,13 +319,6 @@ template class Integral final { return false; } } - template static bool CheckRange(int64_t V) { - if constexpr (std::is_signed_v) { - return Min <= V && V <= Max; - } else { - return V >= 0 && static_cast(V) <= Max; - } - } }; template