From: Alan T. DeKok Date: Thu, 12 Dec 2019 17:39:29 +0000 (-0500) Subject: Revert "add API to clear a pre-existing stack" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba34ff7c7903472da205f3f4c1fcf8a6103e73a;p=thirdparty%2Ffreeradius-server.git Revert "add API to clear a pre-existing stack" This reverts commit 1d764ca8062b0b73704df7acbd4ec8e7e70cab91. not needed --- diff --git a/src/lib/unlang/interpret.c b/src/lib/unlang/interpret.c index 8b288053532..6318f9b27eb 100644 --- a/src/lib/unlang/interpret.c +++ b/src/lib/unlang/interpret.c @@ -996,17 +996,6 @@ void *unlang_interpret_stack_alloc(TALLOC_CTX *ctx) return stack; } -/** Clear the stack for eventual re-use - * - */ -void unlang_interpret_stack_clear(REQUEST *request) -{ - unlang_stack_t *stack = request->stack; - - stack->result = RLM_MODULE_UNKNOWN; - stack->depth = 0; -} - /** Send a signal (usually stop) to a request * * This is typically called via an "async" action, i.e. an action diff --git a/src/lib/unlang/interpret.h b/src/lib/unlang/interpret.h index 25f4188e343..83aa28774b4 100644 --- a/src/lib/unlang/interpret.h +++ b/src/lib/unlang/interpret.h @@ -100,8 +100,6 @@ rlm_rcode_t unlang_interpret_synchronous(REQUEST *request, CONF_SECTION *cs, rlm void *unlang_interpret_stack_alloc(TALLOC_CTX *ctx); -void unlang_interpret_stack_clear(REQUEST *request); - void unlang_interpret_resumable(REQUEST *request); void unlang_interpret_signal(REQUEST *request, fr_state_signal_t action);