clean up unused usages (#421)

* clean up unused usages

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* remove names for arg pack

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* fix namespace in setup.h

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* format

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>

* set UNUSED as fast path

Signed-off-by: SchrodingerZhu <i@zhuyi.fan>
This commit is contained in:
Schrodinger ZHU Yifan
2021-11-19 21:23:39 +08:00
committed by GitHub
parent f731bc169b
commit 8e5514bd5a
14 changed files with 23 additions and 41 deletions

View File

@@ -90,8 +90,6 @@
# define __has_builtin(x) 0
#endif
#define UNUSED(x) ((void)(x))
namespace snmalloc
{
// Forwards reference so that the platform can define how to handle errors.
@@ -168,4 +166,7 @@ namespace snmalloc
#else
static constexpr bool CHECK_CLIENT = false;
#endif
template<typename... Args>
SNMALLOC_FAST_PATH_INLINE void UNUSED(Args&&...)
{}
} // namespace snmalloc