Skip to content

Commit

Permalink
removed deprecated logic that was found using vet. (hypermodeinc#2758)
Browse files Browse the repository at this point in the history
  • Loading branch information
srfrog authored and dna2github committed Jul 19, 2019
1 parent b2945c9 commit e120ebe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ func (sg *SubGraph) preTraverse(uid uint64, dst outputNode) error {
}

var invalidUids map[uint64]bool
var facetsNode outputNode
// We go through all predicate children of the subprotos.
for _, pc := range sg.Children {
if pc.Params.ignoreResult {
Expand Down Expand Up @@ -541,9 +540,6 @@ func (sg *SubGraph) preTraverse(uid uint64, dst outputNode) error {
// Lets pop the stack.
sg.Params.parentIds = (sg.Params.parentIds)[:len(sg.Params.parentIds)-1]
}
if facetsNode != nil && !facetsNode.IsEmpty() {
dst.AddMapChild("@facets", facetsNode, false)
}

// Only for shortest path query we wan't to return uid always if there is
// nothing else at that level.
Expand Down

0 comments on commit e120ebe

Please sign in to comment.