From fd4537dcb84e12465aefd2d549dbf78b2ec6fe69 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 13:38:37 +0300 Subject: rpn: remove unused stack parameter from shouldPushName (task 2j) --- internal/rpn/rpn_parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpn/rpn_parse.go b/internal/rpn/rpn_parse.go index 9c31324..ca43769 100644 --- a/internal/rpn/rpn_parse.go +++ b/internal/rpn/rpn_parse.go @@ -314,7 +314,7 @@ func (r *RPN) dispatchToken(stack *Stack, tokens []string, i int, token string) // Returns true if handled. func (r *RPN) checkVariableName(stack *Stack, tokens []string, i int, token string) bool { // shouldPushName: token before := or =: - if r.shouldPushName(stack, tokens, i) { + if r.shouldPushName(tokens, i) { stack.Push(NewStringNum(token)) return true } @@ -641,7 +641,7 @@ func (r *RPN) handleCustomCommand(stack *Stack, tokens []string, i int) (string, // shouldPushName determines whether a token should be pushed as a variable name (StringNum) // rather than evaluated as a value. Returns true if the token is part of an := or =: assignment. -func (r *RPN) shouldPushName(stack *Stack, tokens []string, i int) bool { +func (r *RPN) shouldPushName(tokens []string, i int) bool { token := tokens[i] // Check if next token is := or =: -- cgit v1.2.3