aboutsummaryrefslogtreecommitdiffstats
path: root/vm/stack.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-10 04:18:34 +0800
committerobscuren <geffobscura@gmail.com>2015-01-10 04:18:34 +0800
commit8c7b764d47ce55ba6abe437ae8232cc537c4e0d9 (patch)
tree457d45ca33e58388b431500d1e2208bd5be47c73 /vm/stack.go
parent905b8cc82f3dc29131f45ccf29bd1d6c967fe132 (diff)
downloadgo-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.gz
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.tar.zst
go-tangerine-8c7b764d47ce55ba6abe437ae8232cc537c4e0d9.zip
updated tests
Diffstat (limited to 'vm/stack.go')
-rw-r--r--vm/stack.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/vm/stack.go b/vm/stack.go
index e31f3eb57..a9aafdb9d 100644
--- a/vm/stack.go
+++ b/vm/stack.go
@@ -2,7 +2,6 @@ package vm
import (
"fmt"
- "math"
"math/big"
)
@@ -141,21 +140,7 @@ func (m *Memory) Resize(size uint64) {
}
}
-func (m *Memory) Get(offset, size int64) []byte {
- if size == 0 {
- return nil
- }
-
- if len(m.store) > int(offset) {
- end := int(math.Min(float64(len(m.store)), float64(offset+size)))
-
- return m.store[offset:end]
- }
-
- return nil
-}
-
-func (self *Memory) Geti(offset, size int64) (cpy []byte) {
+func (self *Memory) Get(offset, size int64) (cpy []byte) {
if size == 0 {
return nil
}