Remove stale get_slab

Everything seems to be using the `Metaslab::get_slab` form instead
This commit is contained in:
Nathaniel Filardo
2021-03-30 12:29:08 +01:00
committed by Nathaniel Wesley Filardo
parent 88150b497f
commit d1b2522a10

View File

@@ -13,11 +13,6 @@ namespace snmalloc
using SlabList = CDLLNode<>;
using SlabLink = CDLLNode<>;
SNMALLOC_FAST_PATH Slab* get_slab(SlabLink* sl)
{
return pointer_align_down<SLAB_SIZE, Slab>(sl);
}
static_assert(
sizeof(SlabLink) <= MIN_ALLOC_SIZE,
"Need to be able to pack a SlabLink into any free small alloc");