From bc16febfe256e9c11eb304dfb3cb749cb871a960 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Thu, 5 Mar 2026 21:50:00 +0000 Subject: [PATCH] chore: remove utilities from ClassUtils that were meant for cpp backwards compatibility --- src/Utils/Utils/ClassUtils.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/Utils/Utils/ClassUtils.h b/src/Utils/Utils/ClassUtils.h index 39fef73c..ca259784 100644 --- a/src/Utils/Utils/ClassUtils.h +++ b/src/Utils/Utils/ClassUtils.h @@ -4,30 +4,6 @@ #define STR(x) #x -#if defined(_MSVC_LANG) -#define _CPP_VERSION _MSVC_LANG -#elif defined(__cplusplus) -#define _CPP_VERSION __cplusplus -#else -#define _CPP_VERSION 0 -#endif - -#ifdef _NODISCARD -#undef _NODISCARD -#endif - -#ifdef _NORETURN -#undef _NORETURN -#endif - -#if _CPP_VERSION >= 201703L -#define _NODISCARD [[nodiscard]] -#define _NORETURN [[noreturn]] -#else -#define _NODISCARD -#define _NORETURN -#endif - template struct Movable { mutable T m_val;