Cleanup
This commit is contained in:
parent
e95b39d534
commit
49573e0aa2
|
@ -71,11 +71,7 @@ template <typename T> struct Pool {
|
|||
return pool.get();
|
||||
}
|
||||
void recycle(T *m) {
|
||||
if (freelist) {
|
||||
m->next = freelist;
|
||||
} else {
|
||||
m->next = nullptr;
|
||||
}
|
||||
m->next = freelist;
|
||||
freelist = m;
|
||||
}
|
||||
void clear() {
|
||||
|
|
Loading…
Reference in New Issue