From fff818bbe6c968b9302a12f1dde651281125aff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Mon, 30 Aug 2021 20:00:20 -0700 Subject: [PATCH] dtlib: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is unused since the very beginning of the module's introduction. It looks like it was abandoned in favor of the approach where each token can have only one capturing group. Signed-off-by: Martí Bolívar --- scripts/dts/python-devicetree/src/devicetree/dtlib.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scripts/dts/python-devicetree/src/devicetree/dtlib.py b/scripts/dts/python-devicetree/src/devicetree/dtlib.py index ca0c9e14b96..9ff3b9d94fd 100644 --- a/scripts/dts/python-devicetree/src/devicetree/dtlib.py +++ b/scripts/dts/python-devicetree/src/devicetree/dtlib.py @@ -1939,11 +1939,6 @@ _byte_re = re.compile(r"[0-9a-fA-F]{2}") # '\c', where c might be a single character or an octal/hex escape. _unescape_re = re.compile(br'\\([0-7]{1,3}|x[0-9A-Fa-f]{1,2}|.)') -# #line directive (this is the regex the C tools use) -_line_re = re.compile( - r'^#(?:line)?[ \t]+([0-9]+)[ \t]+"((?:[^\\"]|\\.)*)"(?:[ \t]+[0-9]+)?', - re.MULTILINE) - def _init_tokens(): # Builds a ()|()|... regex and returns it. The # way this is constructed makes the token's value as an int appear