From 5b12385645e46778367900d7ab84ff29d7e6bb74 Mon Sep 17 00:00:00 2001 From: lash Date: Sat, 1 Apr 2023 23:42:34 +0100 Subject: [PATCH] Remove commented code --- go/state/state.go | 21 --------------------- go/vm/opcodes.go | 3 +-- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/go/state/state.go b/go/state/state.go index e73933e..78ac368 100644 --- a/go/state/state.go +++ b/go/state/state.go @@ -184,27 +184,6 @@ func(st State) Where() string { return st.execPath[l-1] } -//// PutArg adds the optional argument. -//// -//// Fails if arg already set. -//func(st *State) PutArg(input string) error { -// st.arg = &input -// if st.arg != nil { -// return fmt.Errorf("arg already set to %s", *st.arg) -// } -// return nil -//} -// -//// PopArg retrieves the optional argument. Will be freed upon retrieval. -//// -//// Fails if arg not set (or already freed). -//func(st *State) PopArg() (string, error) { -// if st.arg == nil { -// return "", fmt.Errorf("arg is not set") -// } -// return *st.arg, nil -//} - // Down adds the given symbol to the command stack. // // Clears mapping and sink. diff --git a/go/vm/opcodes.go b/go/vm/opcodes.go index 0d6ca09..5c17818 100644 --- a/go/vm/opcodes.go +++ b/go/vm/opcodes.go @@ -5,7 +5,7 @@ import ( ) const VERSION = 0 -// Opcodes +// VM Opcodes const ( BACK = 0 CATCH = 1 @@ -16,7 +16,6 @@ const ( MOVE = 6 HALT = 7 INCMP = 8 - //IN = 9 _MAX = 8 )