Remove dead code that was needed for the old parser (#34792)

The old to token definitions and spec_id_re regular
expression are not used anymore
This commit is contained in:
Massimiliano Culpo 2023-01-04 14:47:21 +01:00 committed by GitHub
parent a869cfd95d
commit 310b6b9466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4939,13 +4939,6 @@ def __missing__(self, key):
return value
#: These are possible token types in the spec grammar.
HASH, DEP, VER, COLON, COMMA, ON, D_ON, OFF, D_OFF, PCT, EQ, D_EQ, ID, VAL, FILE = range(15)
#: Regex for fully qualified spec names. (e.g., builtin.hdf5)
spec_id_re = r"\w[\w.-]*"
def save_dependency_specfiles(
root_spec_info, output_directory, dependencies=None, spec_format="json"
):