mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
core/vm/program: remove redundant allocation in New()
This commit is contained in:
parent
3bbf5f5b6a
commit
7773897371
1 changed files with 1 additions and 3 deletions
|
|
@ -42,9 +42,7 @@ type Program struct {
|
||||||
|
|
||||||
// New creates a new Program
|
// New creates a new Program
|
||||||
func New() *Program {
|
func New() *Program {
|
||||||
return &Program{
|
return &Program{}
|
||||||
code: make([]byte, 0),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// add adds the op to the code.
|
// add adds the op to the code.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue