diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-22 11:23:00 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-22 11:23:00 +0300 |
| commit | 390f5439d80e22f9e8836f1d6bbad002e7656ff6 (patch) | |
| tree | d288caf7a6281bb45b06ada533749c1443ccc3be | |
| parent | ea34759130f0db16631402add7517d0e78e4185a (diff) | |
refactor(rpn): remove duplicate AssignLeft/AssignRight from Operator
VariableOperator already declares AssignLeft and AssignRight.
Operator embeds VariableOperator so the duplicate declarations were
redundant. ISP compliance: keep interfaces minimal.
| -rw-r--r-- | internal/rpn/operations.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/rpn/operations.go b/internal/rpn/operations.go index b8d276e..40f643b 100644 --- a/internal/rpn/operations.go +++ b/internal/rpn/operations.go @@ -155,10 +155,6 @@ type Operator interface { PowerIntOperator // SetMode sets the calculation mode for number formatting SetMode(CalculationMode) - // AssignLeft assigns a value to a variable (for := operator) - AssignLeft(stack *Stack) error - // AssignRight assigns a value to a variable (for =: operator) - AssignRight(stack *Stack) error } // Operations provides operator implementations and stack manipulation. |
