[#288] pilorama: Remove getMeta() wrapper

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-04-26 17:12:04 +03:00 committed by Evgenii Stratonikov
parent 0045f1bcd4
commit 291f9e809a
2 changed files with 1 additions and 6 deletions

View file

@ -142,7 +142,7 @@ func (f *memoryForest) TreeGetMeta(_ context.Context, cid cid.ID, treeID string,
return Meta{}, 0, ErrTreeNotFound
}
return s.getMeta(nodeID), s.infoMap[nodeID].Parent, nil
return s.infoMap[nodeID].Meta, s.infoMap[nodeID].Parent, nil
}
// TreeGetChildren implements the Forest interface.

View file

@ -204,8 +204,3 @@ func (t tree) getByPath(attr string, path []string, latest bool) []Node {
return nodes
}
// getMeta returns meta information of node n.
func (t tree) getMeta(n Node) Meta {
return t.infoMap[n].Meta
}