From: Simon McVittie Date: Mon, 9 Dec 2024 18:25:27 +0000 (+0000) Subject: memory: Remove redundant guard around _dbus_decrement_fail_alloc_counter() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e61173d6462b2793c213aa13d4392f232d1c6ec;p=thirdparty%2Fdbus.git 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 --- 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.