From ce6cde7fa3131fb7e65fcd092fc79112584c9397 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Sun, 29 Mar 2026 21:41:21 +0200 Subject: [PATCH] Remove unused wasm::alignAddr Usage seems to have been removed in #1607 --- src/support/utilities.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/support/utilities.h b/src/support/utilities.h index ca2e1b89ba0..3f40111c451 100644 --- a/src/support/utilities.h +++ b/src/support/utilities.h @@ -47,15 +47,6 @@ inline Destination bit_cast(const Source& source) { return destination; } -inline size_t alignAddr(size_t address, size_t alignment) { - assert(alignment && Bits::isPowerOf2((uint32_t)alignment) && - "Alignment is not a power of two!"); - - assert(address + alignment - 1 >= address); - - return ((address + alignment - 1) & ~(alignment - 1)); -} - // For fatal errors which could arise from input (i.e. not assertion failures) class Fatal { private: