mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 05:17:49 +08:00
remove dead code
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
64a517afed
commit
b8d7d25569
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user