aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-27 23:11:19 +0800
committerobscuren <geffobscura@gmail.com>2015-03-27 23:11:19 +0800
commitdf648cbc60f53dd334bd41b713e08ceac08212a0 (patch)
treec00c3cb5327c45f67aec347b95f5c9bc9b0037b5 /core/vm
parent8a22cd5e6ca88eef0207cfb597175f720d6deda3 (diff)
downloadgo-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar.gz
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar.bz2
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar.lz
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar.xz
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.tar.zst
go-tangerine-df648cbc60f53dd334bd41b713e08ceac08212a0.zip
Removed comments
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/memory.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/vm/memory.go b/core/vm/memory.go
index a80a6aae0..b77d486eb 100644
--- a/core/vm/memory.go
+++ b/core/vm/memory.go
@@ -26,21 +26,6 @@ func (m *Memory) Set(offset, size uint64, value []byte) {
if size > 0 {
copy(m.store[offset:offset+size], common.RightPadBytes(value, int(size)))
}
-
- /*
- totSize := offset + size
- lenSize := uint64(len(m.store) - 1)
- if totSize > lenSize {
- // Calculate the diff between the sizes
- diff := totSize - lenSize
- if diff > 0 {
- // Create a new empty slice and append it
- newSlice := make([]byte, diff-1)
- // Resize slice
- m.store = append(m.store, newSlice...)
- }
- }
- */
}
func (m *Memory) Resize(size uint64) {