From 75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 17 Sep 2016 03:22:53 +0000 Subject: cmake build --- omega/basic/src/Link.cc | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 omega/basic/src/Link.cc (limited to 'omega/basic/src/Link.cc') diff --git a/omega/basic/src/Link.cc b/omega/basic/src/Link.cc deleted file mode 100644 index 50b9441..0000000 --- a/omega/basic/src/Link.cc +++ /dev/null @@ -1,41 +0,0 @@ -#include - -namespace omega { - -#if ListElementFreeList - static List_Element *_kludgy_List_Element_free_list_pointer; -// we rely on the fact that that is initialized to 0 before any -// constructor-based initialization that could call List_Element::new. - - void *kludgy_List_Element_new(size_t size) - { - void *mem; - if (size == sizeof(List_Element) && - _kludgy_List_Element_free_list_pointer) - { - List_Element *it = _kludgy_List_Element_free_list_pointer; - _kludgy_List_Element_free_list_pointer = it->tail; - mem = it; - } - else - mem = ::operator new(size); - - return mem; - } - - void kludgy_List_Element_delete(void *ptr, size_t size) - { - if (ptr) - if (size == sizeof(List_Element)) - { - List_Element *it = (List_Element *) ptr; - it->tail = _kludgy_List_Element_free_list_pointer; - _kludgy_List_Element_free_list_pointer = it; - } - else - ::operator delete(ptr); - } - -#endif - -} // namespace -- cgit v1.2.3-70-g09d2