remove dead code
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Oct 26, 2018 at 12:58 UTC
b8d7d25569fd59911ea876b25c500c69ba56d2c8
1 file changed
-15
core/commands/dag/dag.go
-15
@@ -6,7 +6,6 @@ import (
6
"math"
7
8
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
9
- "github.com/ipfs/go-ipfs/core/commands/e"
9
"github.com/ipfs/go-ipfs/core/coredag"
10
"github.com/ipfs/go-ipfs/pin"
11
@@ -237,17 +236,3 @@ var DagResolveCmd = &cmds.Command{
236
},
237
Type: ResolveOutput{},
238
}
240
-
241
-// copy+pasted from ../commands.go
242
-func unwrapOutput(i interface{}) (interface{}, error) {
243
- var (
244
- ch <-chan interface{}
245
- ok bool
246
- )
247
-
248
- if ch, ok = i.(<-chan interface{}); !ok {
249
- return nil, e.TypeErr(ch, i)
250
- }
251
-
252
- return <-ch, nil
253
-}