get() is never actually needed, remove it
This commit is contained in:
parent
4870b95fa9
commit
80f4b63008
@ -53,7 +53,7 @@ def trace_connectivity(
|
||||
else:
|
||||
name = NetName() # Anonymous net
|
||||
|
||||
nets_info.get(name, layer).append(poly)
|
||||
nets_info.nets[name][layer].append(poly)
|
||||
|
||||
if len(found_nets) > 1:
|
||||
# Found a short
|
||||
|
@ -64,8 +64,6 @@ class NetsInfo:
|
||||
self.nets[keep_net][layer] += self.nets[old_net][layer]
|
||||
del self.nets[old_net]
|
||||
|
||||
def get(self, net: NetName, layer: layer_t) -> List[contour_t]:
|
||||
return self.nets[self.resolve_name(net)][layer]
|
||||
|
||||
def get_shorted_nets(self) -> List[Set[NetName]]:
|
||||
shorts = defaultdict(list)
|
||||
|
Loading…
Reference in New Issue
Block a user