[libc-commits] [libc] 3056395 - [NFC][libc] Delete dead BlockStatus enum type

Daniel Thornburgh via libc-commits libc-commits at lists.llvm.org
Thu Jan 16 15:16:40 PST 2025


Author: Daniel Thornburgh
Date: 2025-01-16T15:16:33-08:00
New Revision: 305639526af3041accebf9da1d9fb916b2e3ff87

URL: https://github.com/llvm/llvm-project/commit/305639526af3041accebf9da1d9fb916b2e3ff87
DIFF: https://github.com/llvm/llvm-project/commit/305639526af3041accebf9da1d9fb916b2e3ff87.diff

LOG: [NFC][libc] Delete dead BlockStatus enum type

Added: 
    

Modified: 
    libc/src/__support/block.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/block.h b/libc/src/__support/block.h
index 20b9f3a42dc647..50a745326eac36 100644
--- a/libc/src/__support/block.h
+++ b/libc/src/__support/block.h
@@ -24,17 +24,6 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-namespace internal {
-// Types of corrupted blocks, and functions to crash with an error message
-// corresponding to each type.
-enum class BlockStatus {
-  VALID,
-  MISALIGNED,
-  PREV_MISMATCHED,
-  NEXT_MISMATCHED,
-};
-} // namespace internal
-
 /// Returns the value rounded down to the nearest multiple of alignment.
 LIBC_INLINE constexpr size_t align_down(size_t value, size_t alignment) {
   // Note this shouldn't overflow since the result will always be <= value.


        


More information about the libc-commits mailing list