Skip to content

Commit

Permalink
Remove functions which are no longer called
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Nov 6, 2017
1 parent 2e0dbfb commit 20b1794
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions render/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ func NewDerivedPseudoNode(id string, node report.Node) report.Node {
return output
}

// NewDerivedExternalNode figures out if a node should be considered external and creates the corresponding pseudo node
func NewDerivedExternalNode(n report.Node, addr string, local report.Networks) (report.Node, bool) {
id, ok := externalNodeID(n, addr, local)
if !ok {
return report.Node{}, false
}
return NewDerivedPseudoNode(id, n), true
}

// figure out if a node should be considered external and returns an ID which can be used to create a pseudo node
func externalNodeID(n report.Node, addr string, local report.Networks) (string, bool) {
// First, check if it's a known service and emit a a specific node if it
Expand Down
10 changes: 0 additions & 10 deletions render/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,6 @@ var ProcessNameRenderer = ConditionalRenderer(renderProcesses,
),
)

// MapEndpoint2Pseudo makes internet of host pesudo nodes from a endpoint node.
func MapEndpoint2Pseudo(n report.Node, local report.Networks) report.Nodes {
id, ok := pseudoNodeID(n, local)
if !ok {
return report.Nodes{}
}
externalNode := NewDerivedPseudoNode(id, n)
return report.Nodes{externalNode.ID: externalNode}
}

func pseudoNodeID(n report.Node, local report.Networks) (string, bool) {
_, addr, _, ok := report.ParseEndpointNodeID(n.ID)
if !ok {
Expand Down

0 comments on commit 20b1794

Please sign in to comment.