From 346238a4ba777cf91af91e91fccccfc7390e75c7 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Mon, 24 Dec 2018 16:11:18 +0100 Subject: [PATCH] Removing another fake nested function. --- src/binding.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/binding.c b/src/binding.c index 14b1db8..da64e1c 100644 --- a/src/binding.c +++ b/src/binding.c @@ -92,16 +92,19 @@ bindingInit (const System mysys) dependInit (sys); } +//! Destroy a binding and return true for iterator +int +binding_destroy_rtrue (Binding b) +{ + binding_destroy (b); + return true; +} + //! Close up void bindingDone () { - int delete (Binding b) - { - binding_destroy (b); - return true; - } - list_iterate (sys->bindings, delete); + list_iterate (sys->bindings, binding_destroy_rtrue); list_destroy (sys->bindings); dependDone (sys);