aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/log.go
diff options
context:
space:
mode:
authorSteven Roose <stevenroose@gmail.com>2018-04-05 20:13:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-05 20:13:02 +0800
commitec8ee611caefb5c5ad5d796178e94c1919260df4 (patch)
tree275a9f91e33abfdafa0a6fdf113e4601616545cd /core/types/log.go
parent1e248f3a6e14f3bfc9ebe1b315c4194300220f68 (diff)
downloadgo-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.gz
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.bz2
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.lz
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.xz
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.tar.zst
go-tangerine-ec8ee611caefb5c5ad5d796178e94c1919260df4.zip
core/types: remove String methods from struct types (#16205)
Most of these methods did not contain all the relevant information inside the object and were not using a similar formatting type. Moreover, the existence of a suboptimal String method breaks usage with more advanced data dumping tools like go-spew.
Diffstat (limited to 'core/types/log.go')
-rw-r--r--core/types/log.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/types/log.go b/core/types/log.go
index be5de38da..b629b47ed 100644
--- a/core/types/log.go
+++ b/core/types/log.go
@@ -17,7 +17,6 @@
package types
import (
- "fmt"
"io"
"github.com/ethereum/go-ethereum/common"
@@ -95,10 +94,6 @@ func (l *Log) DecodeRLP(s *rlp.Stream) error {
return err
}
-func (l *Log) String() string {
- return fmt.Sprintf(`log: %x %x %x %x %d %x %d`, l.Address, l.Topics, l.Data, l.TxHash, l.TxIndex, l.BlockHash, l.Index)
-}
-
// LogForStorage is a wrapper around a Log that flattens and parses the entire content of
// a log including non-consensus fields.
type LogForStorage Log