Skip to content

Commit

Permalink
Removed useless optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutzen committed Jul 31, 2023
1 parent e6db12d commit 28c18e0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions go/pkg/pass1/find-subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ func (c *spoc) findSubnetsInNatDomain0(domains []*natDomain, networks netList) {
}
}
type netPair [2]*network
identSeen := make(netMap)
relationSeen := make(map[netPair]bool)
for _, domain := range domains {
//debug("%s", domain.name)
Expand Down Expand Up @@ -409,14 +408,6 @@ func (c *spoc) findSubnetsInNatDomain0(domains []*natDomain, networks netList) {
hasIdentical[n] = true
}

// If list has been fully analyzed once, don't check it again.
if identSeen[n1] {
continue
}
if len(filtered) == len(l) {
identSeen[n1] = true
}

// Compare pairs of networks with identical IP/mask.
natOther := filtered[0]
other := origNet[natOther]
Expand Down

0 comments on commit 28c18e0

Please sign in to comment.