aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-09-12 06:29:27 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-09-12 06:29:27 +0800
commit55ed8d108d72d12543ecdc6d8c9d9978392dabf0 (patch)
treed594ab985612289895355f07d3a21892e3058e98 /core/vm
parentf1a4b330dd281a37454df873c97afc7c700b61f2 (diff)
parentb81a6e6ab8954689fa183fd19639cf0344c0de19 (diff)
downloaddexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar.gz
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar.bz2
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar.lz
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar.xz
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.tar.zst
dexon-55ed8d108d72d12543ecdc6d8c9d9978392dabf0.zip
Merge pull request #1789 from Gustav-Simonsson/core_remove_unused_functions
core, core/vm, core/state: remove unused functions
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/errors.go17
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
-}