From 3a7ece72263be60bb720504a641d8850db97bba1 Mon Sep 17 00:00:00 2001 From: lexprfuncall <5360361+lexprfuncall@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:30:00 -0700 Subject: [PATCH] Remove an unused function and global variable When the dehugify functionality was retired in an previous commit, a dehugify-related function and global variable in a test was accidentally left in-place causing builds that add -Werror to CFLAGS to fail. --- test/unit/hpa_vectorized_madvise_large_batch.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/unit/hpa_vectorized_madvise_large_batch.c b/test/unit/hpa_vectorized_madvise_large_batch.c index c974500c..e1393225 100644 --- a/test/unit/hpa_vectorized_madvise_large_batch.c +++ b/test/unit/hpa_vectorized_madvise_large_batch.c @@ -113,12 +113,6 @@ defer_test_hugify(void *ptr, size_t size, bool sync) { return false; } -static size_t ndefer_dehugify_calls = 0; -static void -defer_test_dehugify(void *ptr, size_t size) { - ++ndefer_dehugify_calls; -} - static nstime_t defer_curtime; static void defer_test_curtime(nstime_t *r_time, bool first_reading) {