summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 13:38:37 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 13:38:37 +0300
commitfd4537dcb84e12465aefd2d549dbf78b2ec6fe69 (patch)
tree3e81d74102a73c9858011c22bb2eb19d5d3cd479
parent08787b85fc66d44f598f54ec2251c17118f755a7 (diff)
rpn: remove unused stack parameter from shouldPushName (task 2j)
-rw-r--r--internal/rpn/rpn_parse.go4
1 files 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 =: