Remove unused check_designators() function

This commit is contained in:
Daniel Rojas 2020-10-23 20:13:31 +02:00
parent ef76d4e962
commit 4e74aa2a9c

View File

@ -64,12 +64,6 @@ def parse(yaml_input: str, file_out: (str, Path) = None, return_types: (None, st
# add connections # add connections
def check_designators(what, where): # helper function
for i, x in enumerate(what):
if x not in yaml_data[where[i]]:
return False
return True
autogenerated_ids = {} autogenerated_ids = {}
for connection in yaml_data['connections']: for connection in yaml_data['connections']:
# find first component (potentially nested inside list or dict) # find first component (potentially nested inside list or dict)