diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-01-04 14:47:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 05:47:21 -0800 |
commit | 310b6b94666f513067580da300da37c796278a7c (patch) | |
tree | 1bcb00f78d425697643c0fe85ba374ca5e430d7a | |
parent | a869cfd95d130fc806e78fe17b61bfb65010d858 (diff) | |
download | spack-310b6b94666f513067580da300da37c796278a7c.tar.gz spack-310b6b94666f513067580da300da37c796278a7c.tar.bz2 spack-310b6b94666f513067580da300da37c796278a7c.tar.xz spack-310b6b94666f513067580da300da37c796278a7c.zip |
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
-rw-r--r-- | lib/spack/spack/spec.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 85cfa70ca3..e8306ae0b7 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -4939,13 +4939,6 @@ class LazySpecCache(collections.defaultdict): 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" ): |