From 5dad797acf5b7274d663b306c180ac6b30c7083c Mon Sep 17 00:00:00 2001 From: Elad Date: Fri, 8 Mar 2019 21:35:50 +0700 Subject: [PATCH] contracts/ens: removed unused code --- contracts/ens/cid.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/contracts/ens/cid.go b/contracts/ens/cid.go index 2345114dd9..4ec181900c 100644 --- a/contracts/ens/cid.go +++ b/contracts/ens/cid.go @@ -120,17 +120,3 @@ func encodeSwarmHash(hash common.Hash) ([]byte, error) { cidBytes = append(cidBytes, hash[:]...) return cidBytes, nil } - -// encodeCid encodes a swarm hash into an IPLD CID -/*func encodeCid(h common.Hash) (cid.Cid, error) { - b := []byte{0x1b, 0x20} //0x1b = keccak256 (should be changed to bmt), 0x20 = 32 bytes hash length - b = append(b, h.Bytes()...) // append actual hash bytes - multi, err := mh.Cast(b) - if err != nil { - return cid.Cid{}, err - } - - c := cid.NewCidV1(cid.Raw, multi) //todo: cid.Raw should be swarm manifest - - return c, nil -}*/