tools/spec: remove unused enqueue_type function

This commit is contained in:
Danny Robson 2019-01-05 12:00:31 +11:00
parent 05867df536
commit 44edf5d00e

View File

@ -880,26 +880,8 @@ def write_dispatch(path:str, q):
############################################################################### ###############################################################################
def enqueue_type(name:str, queued:Set[str], types:Dict[str,type]):
if name in queued:
return []
result = []
obj = types[name]
for d in obj.depends:
if d == name:
continue
result += enqueue_type(name=d, queued=queued, types=types)
assert name not in queued
queued.add(name)
result += [obj]
return result
import argparse import argparse