diff --git a/core/commands/dag/dag.go b/core/commands/dag/dag.go index 0dae28bec..4d627f5c9 100644 --- a/core/commands/dag/dag.go +++ b/core/commands/dag/dag.go @@ -6,7 +6,6 @@ import ( "math" "github.com/ipfs/go-ipfs/core/commands/cmdenv" - "github.com/ipfs/go-ipfs/core/commands/e" "github.com/ipfs/go-ipfs/core/coredag" "github.com/ipfs/go-ipfs/pin" @@ -237,17 +236,3 @@ var DagResolveCmd = &cmds.Command{ }, Type: ResolveOutput{}, } - -// copy+pasted from ../commands.go -func unwrapOutput(i interface{}) (interface{}, error) { - var ( - ch <-chan interface{} - ok bool - ) - - if ch, ok = i.(<-chan interface{}); !ok { - return nil, e.TypeErr(ch, i) - } - - return <-ch, nil -}