diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-10 21:24:36 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-09-11 03:10:58 +0800 |
commit | b81a6e6ab8954689fa183fd19639cf0344c0de19 (patch) | |
tree | c8333ce3fede145206ce8998858986c8b25f52f0 /core/vm | |
parent | 90f1fe0ed2399f90f01c09e61e244121ef7d148a (diff) | |
download | go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.gz go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.bz2 go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.lz go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.xz go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.tar.zst go-tangerine-b81a6e6ab8954689fa183fd19639cf0344c0de19.zip |
core, core/vm, core/state: remove unused functions
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/errors.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/vm/errors.go b/core/vm/errors.go index 24567e9a1..e2fc84065 100644 --- a/core/vm/errors.go +++ b/core/vm/errors.go @@ -25,20 +25,3 @@ import ( var OutOfGasError = errors.New("Out of gas") var DepthError = fmt.Errorf("Max call depth exceeded (%d)", params.CallCreateDepth) - -type StackError struct { - req, has int -} - -func StackErr(req, has int) StackError { - return StackError{req, has} -} - -func (self StackError) Error() string { - return fmt.Sprintf("stack error! require %v, have %v", self.req, self.has) -} - -func IsStackErr(err error) bool { - _, ok := err.(StackError) - return ok -} |