From d1f8cd329a4e3bc6bcacb5f17447e58ad9148a51 Mon Sep 17 00:00:00 2001 From: Scott Wolchok Date: Wed, 30 Oct 2024 14:00:47 -0700 Subject: [PATCH] [ExecuTorch] Clean up pre-C++17 macros We require C++17. Differential Revision: [D65233922](https://our.internmc.facebook.com/intern/diff/D65233922/) [ghstack-poisoned] --- runtime/platform/compiler.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/runtime/platform/compiler.h b/runtime/platform/compiler.h index b6f7fc8642f..2ef2c62e4b4 100644 --- a/runtime/platform/compiler.h +++ b/runtime/platform/compiler.h @@ -75,8 +75,6 @@ #endif // defined(__GNUC__) -#if (__cplusplus) >= 201703L - #define ET_DEPRECATED [[deprecated]] #define ET_EXPERIMENTAL \ [[deprecated("This API is experimental and may change without notice.")]] @@ -84,18 +82,6 @@ #define ET_NODISCARD [[nodiscard]] #define ET_UNUSED [[maybe_unused]] -#else - -#define ET_DEPRECATED __attribute__((deprecated)) -#define ET_EXPERIMENTAL \ - __attribute__(( \ - deprecated("This API is experimental and may change without notice."))) -#define ET_FALLTHROUGH __attribute__((fallthrough)) -#define ET_NODISCARD __attribute__((warn_unused_result)) -#define ET_UNUSED __attribute__((unused)) - -#endif // (__cplusplus) >= 201703L - // UNLIKELY Macro // example // if ET_UNLIKELY(a > 10 && b < 5) {