diff --git a/render/id.go b/render/id.go index 5ddd6ae0e3..44bdf3fe30 100644 --- a/render/id.go +++ b/render/id.go @@ -37,15 +37,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 diff --git a/render/process.go b/render/process.go index 4d4c122aef..a5b35ab9c8 100644 --- a/render/process.go +++ b/render/process.go @@ -77,16 +77,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 {