get() is never actually needed, remove it

This commit is contained in:
jan 2022-03-30 23:58:53 -07:00
parent 4870b95fa9
commit 80f4b63008
2 changed files with 1 additions and 3 deletions

View File

@ -53,7 +53,7 @@ def trace_connectivity(
else: else:
name = NetName() # Anonymous net name = NetName() # Anonymous net
nets_info.get(name, layer).append(poly) nets_info.nets[name][layer].append(poly)
if len(found_nets) > 1: if len(found_nets) > 1:
# Found a short # Found a short

View File

@ -64,8 +64,6 @@ class NetsInfo:
self.nets[keep_net][layer] += self.nets[old_net][layer] self.nets[keep_net][layer] += self.nets[old_net][layer]
del self.nets[old_net] 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]]: def get_shorted_nets(self) -> List[Set[NetName]]:
shorts = defaultdict(list) shorts = defaultdict(list)