From 6e61173d6462b2793c213aa13d4392f232d1c6ec Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 9 Dec 2024 18:25:27 +0000 Subject: [PATCH] memory: Remove redundant guard around _dbus_decrement_fail_alloc_counter() This function is already inside `#ifdef DBUS_ENABLE_EMBEDDED_TESTS` and doesn't need a second layer of the same guard. Signed-off-by: Simon McVittie --- dbus/dbus-memory.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c index be7e4ef6b..cf3dd881a 100644 --- a/dbus/dbus-memory.c +++ b/dbus/dbus-memory.c @@ -244,7 +244,6 @@ _dbus_get_fail_alloc_failures (void) return n_failures_per_failure; } -#ifdef DBUS_ENABLE_EMBEDDED_TESTS /** * Called when about to alloc some memory; if * it returns #TRUE, then the allocation should @@ -286,7 +285,6 @@ _dbus_decrement_fail_alloc_counter (void) return FALSE; } } -#endif /* DBUS_ENABLE_EMBEDDED_TESTS */ /** * Get the number of outstanding malloc()'d blocks. -- 2.47.3