From eb96f5a5a23966e3a39e398d697d7f28545d6870 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 19 Nov 2021 22:27:59 +0300 Subject: [PATCH] vm: drop CheckReturnState definition It's something obsolete from RC phase. --- pkg/vm/context.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/vm/context.go b/pkg/vm/context.go index 77d09369f..6346fd21a 100644 --- a/pkg/vm/context.go +++ b/pkg/vm/context.go @@ -54,19 +54,6 @@ type Context struct { NEF *nef.File } -// CheckReturnState represents possible states of stack after opcode.RET was processed. -type CheckReturnState byte - -const ( - // NoCheck performs no return values check. - NoCheck CheckReturnState = 0 - // EnsureIsEmpty checks that stack is empty and panics if not. - EnsureIsEmpty CheckReturnState = 1 - // EnsureNotEmpty checks that stack contains not more than 1 element and panics if not. - // It pushes stackitem.Null on stack in case if there's no elements. - EnsureNotEmpty CheckReturnState = 2 -) - var errNoInstParam = errors.New("failed to read instruction parameter") // NewContext returns a new Context object.