Skip to content

Commit 8189650

Browse files
authored
Merge pull request ipfs#5750 from overbool/refactor/cmds/rm-reduntant-func
cmds: remove reduntant func
2 parents 98f6b2f + 57b0c0f commit 8189650

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

core/commands/root.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ package commands
22

33
import (
44
"errors"
5-
"io"
6-
"strings"
75

8-
oldcmds "github.com/ipfs/go-ipfs/commands"
96
lgc "github.com/ipfs/go-ipfs/commands/legacy"
107
dag "github.com/ipfs/go-ipfs/core/commands/dag"
11-
e "github.com/ipfs/go-ipfs/core/commands/e"
128
name "github.com/ipfs/go-ipfs/core/commands/name"
139
ocmd "github.com/ipfs/go-ipfs/core/commands/object"
1410
unixfs "github.com/ipfs/go-ipfs/core/commands/unixfs"
@@ -214,17 +210,3 @@ func init() {
214210
type MessageOutput struct {
215211
Message string
216212
}
217-
218-
func MessageTextMarshaler(res oldcmds.Response) (io.Reader, error) {
219-
v, err := unwrapOutput(res.Output())
220-
if err != nil {
221-
return nil, err
222-
}
223-
224-
out, ok := v.(*MessageOutput)
225-
if !ok {
226-
return nil, e.TypeErr(out, v)
227-
}
228-
229-
return strings.NewReader(out.Message), nil
230-
}

0 commit comments

Comments
 (0)