From eae1e61a88567cdc373bfbbe6ca1297381c9d9e6 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 14 Apr 2023 10:47:25 -0400 Subject: [PATCH] AK: Remove unused AK_ARCH_ defines ARCH() uses the AK_IS_ARCH_ macros internally since 349e54d5375a4a, and all user code uses the ARCH() macro instead of AK_ARCH_. (Why it's called ARCH() and not AK_ARCH(), I don't know.) If any ports not in the main repo use AK_ARCH_, they should switch to using ARCH() instead. --- AK/Platform.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/AK/Platform.h b/AK/Platform.h index 7b5c28e663..d0d1ffbd0e 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -12,21 +12,18 @@ #endif #ifdef __x86_64__ -# define AK_ARCH_X86_64 1 # define AK_IS_ARCH_X86_64() 1 #else # define AK_IS_ARCH_X86_64() 0 #endif #ifdef __aarch64__ -# define AK_ARCH_AARCH64 1 # define AK_IS_ARCH_AARCH64() 1 #else # define AK_IS_ARCH_AARCH64() 0 #endif #ifdef __wasm32__ -# define AK_ARCH_WASM32 1 # define AK_IS_ARCH_WASM32() 1 #else # define AK_IS_ARCH_WASM32() 0