From 3462c53983d7609f043ff5df2c957ef09f057ed3 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 20 Aug 2021 13:10:31 +0100 Subject: [PATCH] NFC: Remove spurious forward declarations There is no such thing as "struct Slab" any more. We use alignof(RemoteAllocator) below, so we already require the complete type definition at this point. --- src/mem/metaslab.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mem/metaslab.h b/src/mem/metaslab.h index 7e61dae..9ff584c 100644 --- a/src/mem/metaslab.h +++ b/src/mem/metaslab.h @@ -9,8 +9,6 @@ namespace snmalloc { - class Slab; - // The Metaslab represent the status of a single slab. // This can be either a short or a standard slab. class alignas(CACHELINE_SIZE) Metaslab @@ -184,8 +182,6 @@ namespace snmalloc } }; - struct RemoteAllocator; - /** * Entry stored in the pagemap. */