Skip to content

Commit

Permalink
refactor(repo): remove references to Abstract dataset structs
Browse files Browse the repository at this point in the history
Merge pull request #341 from qri-io/cleanup
  • Loading branch information
b5 authored Apr 5, 2018
2 parents 49a1f23 + 557f8f3 commit 5ea4e22
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions repo/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ func (nl NodeList) nodesFromDatasetRef(r Repo, ref *DatasetRef) *dsgraph.Node {
root.AddLinks(dsgraph.Link{From: root, To: commit})
}

if ds.Abstract != nil && ds.Abstract.Path().String() != "" {
root.AddLinks(dsgraph.Link{
From: root,
To: nl.node(dsgraph.NtAbstDataset, ds.Abstract.Path().String()),
})
}

if ds.Transform != nil && ds.Transform.Path().String() != "" {
if q, err := dsfs.LoadTransform(r.Store(), ds.Transform.Path()); err == nil {
trans := nl.node(dsgraph.NtTransform, ds.Transform.Path().String())
Expand All @@ -166,13 +159,6 @@ func (nl NodeList) nodesFromDatasetRef(r Repo, ref *DatasetRef) *dsgraph.Node {
}
}

if ds.AbstractTransform != nil && ds.AbstractTransform.Path().String() != "" {
root.AddLinks(dsgraph.Link{
From: root,
To: nl.node(dsgraph.NtAbstTransform, ds.AbstractTransform.Path().String()),
})
}

return root
}

Expand Down

0 comments on commit 5ea4e22

Please sign in to comment.