mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
Removed comments
This commit is contained in:
parent
8a22cd5e6c
commit
df648cbc60
1 changed files with 0 additions and 15 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue