From df648cbc60f53dd334bd41b713e08ceac08212a0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 27 Mar 2015 16:11:19 +0100 Subject: [PATCH] Removed comments --- core/vm/memory.go | 15 --------------- 1 file changed, 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) {