From d262cb39ea59ba661d85717db7a63f062800b11f Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Sun, 5 Nov 2017 21:48:05 +0000 Subject: [PATCH] Remove functions which are no longer called --- render/id.go | 9 --------- render/process.go | 10 ---------- 2 files changed, 19 deletions(-) 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 {