about summary refs log tree commit diff
path: root/pkg/lang/vm/stack/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/stack/stack.go')
-rw-r--r--pkg/lang/vm/stack/stack.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/lang/vm/stack/stack.go b/pkg/lang/vm/stack/stack.go
index 314d0c6..34ca896 100644
--- a/pkg/lang/vm/stack/stack.go
+++ b/pkg/lang/vm/stack/stack.go
@@ -19,7 +19,6 @@ type Stack interface {
 
 	PushCall(newPc, returnPc int, env mem.Ptr) error
 	PopCall() (int, error)
-	ShiftTopCallBase(by int) error
 
 	CurrentCallEnv() mem.Ptr
 	CallDepth() int
@@ -133,18 +132,6 @@ func (stack *stackImpl) PopCall() (int, error) {
 	return call.returnPc, nil
 }
 
-func (stack *stackImpl) ShiftTopCallBase(by int) error {
-	call := stack.topCall()
-	newBase := call.base - by
-
-	if newBase < 0 {
-		return ErrCallBaseCantBeNegative
-	}
-
-	call.base = newBase
-	return nil
-}
-
 func (stack *stackImpl) CurrentCallEnv() mem.Ptr {
 	if stack.CallDepth() == 0 || stack.topCall().env.IsNull() {
 		return mem.NullPtr