mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove base/tl/allocator.h
This commit is contained in:
parent
47098daa42
commit
f9d49bd53e
|
@ -1686,7 +1686,6 @@ set_src(BASE GLOB_RECURSE src/base
|
||||||
math.h
|
math.h
|
||||||
system.cpp
|
system.cpp
|
||||||
system.h
|
system.h
|
||||||
tl/allocator.h
|
|
||||||
tl/range.h
|
tl/range.h
|
||||||
tl/threading.h
|
tl/threading.h
|
||||||
unicode/confusables.cpp
|
unicode/confusables.cpp
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
||||||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
|
||||||
#ifndef BASE_TL_ALLOCATOR_H
|
|
||||||
#define BASE_TL_ALLOCATOR_H
|
|
||||||
|
|
||||||
template<class T>
|
|
||||||
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
|
|
Loading…
Reference in a new issue