Skip to content

Commit fa4aefe

Browse files
committed
core/vm: cleanup and renames
1 parent 8610314 commit fa4aefe

5 files changed

Lines changed: 0 additions & 52 deletions

File tree

File renamed without changes.

‎core/vm/environment.go‎

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ package vm
22

33
import (
44
"errors"
5-
"fmt"
6-
"io"
75
"math/big"
86

97
"github.com/ethereum/go-ethereum/common"
108
"github.com/ethereum/go-ethereum/core/state"
11-
"github.com/ethereum/go-ethereum/rlp"
129
)
1310

1411
type Environment interface {
@@ -52,40 +49,3 @@ func Transfer(from, to Account, amount *big.Int) error {
5249

5350
return nil
5451
}
55-
56-
type Log struct {
57-
address common.Address
58-
topics []common.Hash
59-
data []byte
60-
log uint64
61-
}
62-
63-
func (self *Log) Address() common.Address {
64-
return self.address
65-
}
66-
67-
func (self *Log) Topics() []common.Hash {
68-
return self.topics
69-
}
70-
71-
func (self *Log) Data() []byte {
72-
return self.data
73-
}
74-
75-
func (self *Log) Number() uint64 {
76-
return self.log
77-
}
78-
79-
func (self *Log) EncodeRLP(w io.Writer) error {
80-
return rlp.Encode(w, []interface{}{self.address, self.topics, self.data})
81-
}
82-
83-
/*
84-
func (self *Log) RlpData() interface{} {
85-
return []interface{}{self.address, common.ByteSliceToInterface(self.topics), self.data}
86-
}
87-
*/
88-
89-
func (self *Log) String() string {
90-
return fmt.Sprintf("{%x %x %x}", self.address, self.data, self.topics)
91-
}

‎core/vm/main_test.go‎

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.

‎core/vm/vm_test.go‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)