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);