aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2020-08-04 11:36:53 -0700
committerBrian Behlendorf <[email protected]>2020-08-05 10:28:18 -0700
commit0cab7970f9c10284d2dae47de52c974101e68274 (patch)
tree36accdaaa57d7215d6ef23eb989f718355a27fa5
parent74e994ec63804af69b177b2a26f13a67dd2b9360 (diff)
Remove commented-out code
Remove dead code to make the implementation easier to understand. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Ahrens <[email protected]> Closes #10650
-rw-r--r--module/os/freebsd/spl/spl_zlib.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/module/os/freebsd/spl/spl_zlib.c b/module/os/freebsd/spl/spl_zlib.c
index 079801f2d..3644eba77 100644
--- a/module/os/freebsd/spl/spl_zlib.c
+++ b/module/os/freebsd/spl/spl_zlib.c
@@ -240,30 +240,3 @@ z_uncompress(void *dest, size_t *destLen, const void *source, size_t sourceLen)
return (err);
}
-
-#if 0
-int
-spl_zlib_init(void)
-{
- int size;
-
- size = MAX(spl_zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL),
- zlib_inflate_workspacesize());
-
- zlib_workspace_cache = kmem_cache_create(
- "spl_zlib_workspace_cache",
- size, 0, NULL, NULL, NULL, NULL, NULL,
- KMC_VMEM | KMC_NOEMERGENCY);
- if (!zlib_workspace_cache)
- return (1);
-
- return (0);
-}
-
-void
-spl_zlib_fini(void)
-{
- kmem_cache_destroy(zlib_workspace_cache);
- zlib_workspace_cache = NULL;
-}
-#endif