diff --git a/Include/auROXTL/auMemoryModel.hpp b/Include/auROXTL/auMemoryModel.hpp index fd99b97..552af59 100644 --- a/Include/auROXTL/auMemoryModel.hpp +++ b/Include/auROXTL/auMemoryModel.hpp @@ -239,8 +239,6 @@ constexpr AuUInt AuSizeOf(const AuSPtr) return sizeof(T); } -#if defined(DEBUG) || defined(STAGING) - template static auline void AU_NORETURN SysPanic(T... args); @@ -251,23 +249,12 @@ static void auline AuSafeDelete(T *in) if (in == nullptr) { - Z re; - SysPanic("Tried to free: 0x{:x}, type \"{}\" / \"{}\"", AuUInt(in), typeid(in).name(), typeid(re).name()); + return; } delete static_cast(in); } -#else - -template -static void auline AuSafeDelete(T *in) -{ - static_assert(AuIsBaseOf_v>, "Couldn't not safe delete from type T because it is not derived from Z"); - delete static_cast(in); -} - -#endif // TODO: Move me #include "auOptional.hpp"