]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "add API to clear a pre-existing stack"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 Dec 2019 17:39:29 +0000 (12:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 Dec 2019 17:43:37 +0000 (12:43 -0500)
This reverts commit 1d764ca8062b0b73704df7acbd4ec8e7e70cab91.

not needed

src/lib/unlang/interpret.c
src/lib/unlang/interpret.h

index 8b288053532973a961c7981017f8aaad68ec0385..6318f9b27eb792bc230d10d12266ae75871353d7 100644 (file)
@@ -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
index 25f4188e34395d843cecd211f28e6a7ef553514f..83aa28774b4201458e59179e42d3002ff4db7ead 100644 (file)
@@ -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);