From e81652c2fc2787fc8aab3937be62127e7a3354ee Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 5 May 2020 18:06:38 +0200 Subject: cleaned up MIAMI ifdefs --- src/core/templates.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/core/templates.h') diff --git a/src/core/templates.h b/src/core/templates.h index 74bc4713..44ab566b 100644 --- a/src/core/templates.h +++ b/src/core/templates.h @@ -34,25 +34,20 @@ class CPool int m_allocPtr; public: + // TODO(MIAMI): remove ctor without name argument CPool(int size){ // TODO: use new here m_entries = (U*)malloc(sizeof(U)*size); m_flags = (Flags*)malloc(sizeof(Flags)*size); m_size = size; -#ifndef MIAMI - m_allocPtr = 0; -#else m_allocPtr = -1; -#endif for(int i = 0; i < size; i++){ m_flags[i].id = 0; m_flags[i].free = 1; } } -#ifdef MIAMI CPool(int size, const char *name) : CPool(size) {} -#endif ~CPool() { Flush(); } -- cgit v1.2.3