From cd8ba181915a158ac1f609da14e9e479d5631e38 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 11 Apr 2019 16:55:05 +0100 Subject: [PATCH] Delete some dead code that's difficult to use correctly. --- src/mem/alloc.h | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/mem/alloc.h b/src/mem/alloc.h index 265daf3..692223a 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -79,36 +79,6 @@ namespace snmalloc } }; - /** - * Mixin used by `SuperslabMap` to access a pagemap provided by the user. - * This should be used by code that needs to access the canonical pagemap via - * some custom mechanism. - */ - class CustomPagemap - { - /** - * Reference to the pagemap that we're using, allowing it to not be the - * default pagemap. - */ - SuperslabPagemap& custom_pagemap; - - public: - /** - * Constructor. Takes the pagemap to use as an argument. This constructor - * will be inherited by `SuperslabMap` if this mixin is used and so should - * be called as a constructor there, rather than directly. - */ - CustomPagemap(SuperslabPagemap& pm) : custom_pagemap(pm) {} - - /** - * Returns the provided pagemap. - */ - SuperslabPagemap& pagemap() - { - return custom_pagemap; - } - }; - /** * Optionally exported function that accesses the global pagemap provided by * a shared library.