From 20b179412e60e163a882299f8d63e0cfb4bcee43 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 e482f50bf2..890b66f152 100644 --- a/render/id.go +++ b/render/id.go @@ -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 diff --git a/render/process.go b/render/process.go index 547b3eb89b..ff211c3f99 100644 --- a/render/process.go +++ b/render/process.go @@ -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 {