Skip to content

Commit 25a3d92

Browse files
futrealleljobe
andauthored
remove: delete unused HashPlusInt function from arbos/util (#3730)
* remove: delete unused HashPlusInt function from arbos/util * Update util.go --------- Co-authored-by: Pepper Lebeck-Jobe <[email protected]>
1 parent 16f5868 commit 25a3d92

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arbos/util/util.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ func UintToHash(val uint64) common.Hash {
200200
return common.BigToHash(new(big.Int).SetUint64(val))
201201
}
202202

203-
func HashPlusInt(x common.Hash, y int64) common.Hash {
204-
return common.BigToHash(new(big.Int).Add(x.Big(), big.NewInt(y))) // BUGBUG: BigToHash(x) converts abs(x) to a Hash
205-
}
206-
207203
func RemapL1Address(l1Addr common.Address) common.Address {
208204
sumBytes := new(big.Int).Add(new(big.Int).SetBytes(l1Addr.Bytes()), AddressAliasOffset).Bytes()
209205
if len(sumBytes) > 20 {

0 commit comments

Comments
 (0)