提交 57b0c0f7 作者: Overbool

cmds: remove reduntant func

License: MIT
Signed-off-by: 's avatarOverbool <overbool.xu@gmail.com>
上级 98f6b2f6
......@@ -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"
......@@ -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
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论