From f20b3225bcc455336caf5540aadb6f4c4c2eb1ad Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Thu, 1 Jun 2023 12:30:59 -0400 Subject: [PATCH] feat: remove go-ipld-format globals --- merkledag.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/merkledag.go b/merkledag.go index 2fa3a6e..c9131bc 100644 --- a/merkledag.go +++ b/merkledag.go @@ -9,7 +9,6 @@ import ( blocks "github.com/ipfs/go-block-format" bserv "github.com/ipfs/go-blockservice" cid "github.com/ipfs/go-cid" - ipldcbor "github.com/ipfs/go-ipld-cbor" format "github.com/ipfs/go-ipld-format" legacy "github.com/ipfs/go-ipld-legacy" dagpb "github.com/ipld/go-codec-dagpb" @@ -19,15 +18,6 @@ import ( basicnode "github.com/ipld/go-ipld-prime/node/basic" ) -// TODO: We should move these registrations elsewhere. Really, most of the IPLD -// functionality should go in a `go-ipld` repo but that will take a lot of work -// and design. -func init() { - format.Register(cid.DagProtobuf, DecodeProtobufBlock) - format.Register(cid.Raw, DecodeRawBlock) - format.Register(cid.DagCBOR, ipldcbor.DecodeBlock) -} - // contextKey is a type to use as value for the ProgressTracker contexts. type contextKey string