From: Arran Cudbard-Bell Date: Tue, 15 Jul 2025 01:14:38 +0000 (-0600) Subject: Remove unused function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bfcd975b86170bfb358ab32f0374b9502b32ae8;p=thirdparty%2Ffreeradius-server.git Remove unused function --- diff --git a/src/lib/unlang/unlang_priv.h b/src/lib/unlang/unlang_priv.h index 90ac6d1782..8e6c8123b8 100644 --- a/src/lib/unlang/unlang_priv.h +++ b/src/lib/unlang/unlang_priv.h @@ -611,20 +611,6 @@ static inline int stack_depth_current(request_t *request) return stack->depth; } -/** Initialise the result fields in a frame - * - * @param[in] result_p Where to write the result of executing the instruction in the frame. - * If NULL, the result will be written to frame->result, and evaluated - automatically by the interpeter when the frame is advanced or popped. - * @param[in] frame Frame to set the result for. - */ -static inline void frame_result_set(unlang_result_t *result_p, unlang_stack_frame_t *frame) -{ - frame->result_p = result_p ? result_p : &frame->scratch_result; - frame->scratch_result.rcode = RLM_MODULE_NOT_SET; - frame->scratch_result.priority = MOD_ACTION_NOT_SET; -} - /** Initialise memory and instruction for a frame when a new instruction is to be evaluated * * @note We don't change result_p here, we only reset the scratch values. This is because