From 72c06a258940696093f255fb1061beb58e1cdd0b Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 29 May 2010 07:25:38 +0000 Subject: copied refactor to trunk --- src/base/tl/allocator.hpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/base/tl/allocator.hpp (limited to 'src/base/tl/allocator.hpp') diff --git a/src/base/tl/allocator.hpp b/src/base/tl/allocator.hpp deleted file mode 100644 index 3baa1c19..00000000 --- a/src/base/tl/allocator.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef TL_FILE_ALLOCATOR_HPP -#define TL_FILE_ALLOCATOR_HPP - -template -class allocator_default -{ -public: - static T *alloc() { return new T; } - static void free(T *p) { delete p; } - - static T *alloc_array(int size) { return new T [size]; } - static void free_array(T *p) { delete [] p; } -}; - -#endif // TL_FILE_ALLOCATOR_HPP -- cgit 1.4.1