From: Tomohiro Kusumi Date: Thu, 5 Sep 2019 14:08:04 +0000 (+0900) Subject: sbin/hammer2: Remove unused if0'd malloc/free wrappers X-Git-Tag: v5.8.0rc1~1030 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/5a542b7416e20ba3afe37fe0fd0b57e2a5f2ac56 sbin/hammer2: Remove unused if0'd malloc/free wrappers Unused since 0c3a8cd0eb169fa13895a5691f9a1c298c489721 in 2012. Prototypes have also been removed from header. --- diff --git a/sbin/hammer2/subs.c b/sbin/hammer2/subs.c index 8bca0f971c..a0d7e2dffc 100644 --- a/sbin/hammer2/subs.c +++ b/sbin/hammer2/subs.c @@ -267,29 +267,6 @@ counttostr(hammer2_off_t size) return(buf); } -#if 0 -/* - * Allocation wrappers give us shims for possible future use - */ -void * -hammer2_alloc(size_t bytes) -{ - void *ptr; - - ptr = malloc(bytes); - assert(ptr); - bzero(ptr, bytes); - return (ptr); -} - -void -hammer2_free(void *ptr) -{ - free(ptr); -} - -#endif - hammer2_key_t dirhash(const unsigned char *name, size_t len) {