go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit 5b12385645e46778367900d7ab84ff29d7e6bb74
parent de20c278779b6db7a38a714b1c4f5481df46ecf4
Author: lash <dev@holbrook.no>
Date:   Sat,  1 Apr 2023 23:42:34 +0100

Remove commented code

Diffstat:
Mgo/state/state.go | 21---------------------
Mgo/vm/opcodes.go | 3+--
2 files changed, 1 insertion(+), 23 deletions(-)

diff --git 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 @@ -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 )