From d1d90ecbecd9e4f6d9b88cfaa26404dbde99504d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Fri, 12 Apr 2024 18:01:26 +0200 Subject: [PATCH] Cleanup: MEM: Remove outdated comment --- intern/guardedalloc/MEM_guardedalloc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index d5efc16b4ea..6fb9021fac1 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -312,8 +312,6 @@ template inline T *MEM_cnew(const char *allocation_name) { static_assert(std::is_trivial_v, "For non-trivial types, MEM_new should be used."); if (alignof(T) <= MEM_MIN_CPP_ALIGNMENT) { - /* TODO: Could possibly cover more cases, like alignment of 8 or 16. Need to be careful as the - * alignment of MEM_callocN is not really guaranteed. */ return static_cast(MEM_callocN(sizeof(T), allocation_name)); } void *ptr = MEM_mallocN_aligned(sizeof(T), alignof(T), allocation_name);