Skip to content

Commit

Permalink
Merge pull request #5750 from overbool/refactor/cmds/rm-reduntant-func
Browse files Browse the repository at this point in the history
cmds: remove reduntant func
  • Loading branch information
Stebalien authored Nov 8, 2018
2 parents 98f6b2f + 57b0c0f commit 8189650
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions core/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ package commands

import (
"errors"
"io"
"strings"

oldcmds "github.com/ipfs/go-ipfs/commands"
lgc "github.com/ipfs/go-ipfs/commands/legacy"
dag "github.com/ipfs/go-ipfs/core/commands/dag"
e "github.com/ipfs/go-ipfs/core/commands/e"
name "github.com/ipfs/go-ipfs/core/commands/name"
ocmd "github.com/ipfs/go-ipfs/core/commands/object"
unixfs "github.com/ipfs/go-ipfs/core/commands/unixfs"
Expand Down Expand Up @@ -214,17 +210,3 @@ func init() {
type MessageOutput struct {
Message string
}

func MessageTextMarshaler(res oldcmds.Response) (io.Reader, error) {
v, err := unwrapOutput(res.Output())
if err != nil {
return nil, err
}

out, ok := v.(*MessageOutput)
if !ok {
return nil, e.TypeErr(out, v)
}

return strings.NewReader(out.Message), nil
}

0 comments on commit 8189650

Please sign in to comment.