removing duplication checking, which is no longer needed due to connection aggregation

This commit is contained in:
Paul Bellamy
2015-06-30 15:00:14 +01:00
parent cd71f82d4d
commit 129e529a0e

View File

@@ -2,7 +2,6 @@ package render
import (
"fmt"
"reflect"
"sort"
"strconv"
@@ -80,15 +79,8 @@ func MakeDetailedNode(r report.Report, n RenderableNode) DetailedNode {
// in the UI, so we skip the intermediate representations, but we could
// add them later.
connections := []Row{}
outer:
for _, id := range n.Origins {
if table, ok := OriginTable(r, id); ok {
// TODO there's a bug that yields duplicate tables. Quick fix.
for _, existing := range tables {
if reflect.DeepEqual(existing, table) {
continue outer
}
}
tables = append(tables, table)
} else if nmd, ok := r.Endpoint.NodeMetadatas[id]; ok {
connections = append(connections, connectionDetailsRows(r.Endpoint, id, nmd)...)