提交 ba733854 作者: Lucas Molas

mfs: remove unused `Root` variables `node` and `Type`

License: MIT
Signed-off-by: 's avatarLucas Molas <schomatis@gmail.com>
上级 08922d23
...@@ -50,8 +50,6 @@ type FSNode interface { ...@@ -50,8 +50,6 @@ type FSNode interface {
// Root represents the root of a filesystem tree. // Root represents the root of a filesystem tree.
type Root struct { type Root struct {
// node is the merkledag root.
node *dag.ProtoNode
// Root directory of the MFS layout. // Root directory of the MFS layout.
dir *Directory dir *Directory
...@@ -59,8 +57,6 @@ type Root struct { ...@@ -59,8 +57,6 @@ type Root struct {
repub *Republisher repub *Republisher
dserv ipld.DAGService dserv ipld.DAGService
Type string
} }
// PubFunc is the function used by the `publish()` method. // PubFunc is the function used by the `publish()` method.
...@@ -77,7 +73,6 @@ func NewRoot(parent context.Context, ds ipld.DAGService, node *dag.ProtoNode, pf ...@@ -77,7 +73,6 @@ func NewRoot(parent context.Context, ds ipld.DAGService, node *dag.ProtoNode, pf
} }
root := &Root{ root := &Root{
node: node,
repub: repub, repub: repub,
dserv: ds, dserv: ds,
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论