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

@@ -77,8 +77,7 @@ namespace snmalloc
}
else
{
UNUSED(p);
UNUSED(size);
UNUSED(p, size);
}
}

View File

@@ -24,8 +24,7 @@ namespace snmalloc
}
else
{
UNUSED(p);
UNUSED(size);
UNUSED(p, size);
}
}
};

View File

@@ -194,8 +194,7 @@ namespace snmalloc
}
else
{
UNUSED(p);
UNUSED(size);
UNUSED(p, size);
}
}
@@ -216,8 +215,7 @@ namespace snmalloc
mprotect(p, size, PROT_READ | PROT_WRITE);
else
{
UNUSED(p);
UNUSED(size);
UNUSED(p, size);
}
if constexpr (zero_mem == YesZero)
@@ -238,8 +236,7 @@ namespace snmalloc
mprotect(p, size, PROT_READ);
else
{
UNUSED(p);
UNUSED(size);
UNUSED(p, size);
}
}