From b7e13f2eb6e3b32f7be8991cca77c11e179477e5 Mon Sep 17 00:00:00 2001 From: Alex Rice Date: Wed, 27 Nov 2024 08:42:46 +0000 Subject: [PATCH] core: Remove ParsingContext (#3524) Dead code --- xdsl/irdl/declarative_assembly_format_parser.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xdsl/irdl/declarative_assembly_format_parser.py b/xdsl/irdl/declarative_assembly_format_parser.py index b798bc0812..0d692445bb 100644 --- a/xdsl/irdl/declarative_assembly_format_parser.py +++ b/xdsl/irdl/declarative_assembly_format_parser.py @@ -8,7 +8,6 @@ import re from collections.abc import Callable, Sequence, Set from dataclasses import dataclass, field -from enum import Enum, auto from itertools import pairwise from typing import cast @@ -115,13 +114,6 @@ def lex(self) -> Token: bare_identifier_suffix_regex = re.compile(r"[a-zA-Z0-9_$.\-]*") -class ParsingContext(Enum): - """Indicates if the parser is nested in a particular directive.""" - - TopLevel = auto() - TypeDirective = auto() - - @dataclass(init=False) class FormatParser(BaseParser): """