From b4b1241c9e2a3c4a6dd949ad04a355dd747ba75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Thu, 12 Jan 2023 14:58:40 +0000 Subject: [PATCH] remove dead code. --- chain/types/ethtypes/eth_types.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/chain/types/ethtypes/eth_types.go b/chain/types/ethtypes/eth_types.go index abde99fcc88..8cf931bf03a 100644 --- a/chain/types/ethtypes/eth_types.go +++ b/chain/types/ethtypes/eth_types.go @@ -422,30 +422,6 @@ type EthFeeHistory struct { Reward *[][]EthBigInt `json:"reward,omitempty"` } -type BlkNumType int64 - -const ( - BlkNumLatest BlkNumType = iota - BlkNumPending - BlkNumVal -) - -func ParseBlkNumOption(str string) (typ BlkNumType, blkNum EthUint64, err error) { - switch str { - case "pending": - return BlkNumPending, 0, nil - case "latest": - return BlkNumLatest, 0, nil - default: - var num EthUint64 - err := num.UnmarshalJSON([]byte(`"` + str + `"`)) - if err != nil { - return BlkNumVal, 0, err - } - return BlkNumVal, num, nil - } -} - type EthFilterID EthHash // An opaque identifier generated by the Lotus node to refer to an active subscription.