Skip to content

Commit fff818b

Browse files
mbolivar-nordiccfriedt
authored andcommitted
dtlib: remove unused variable
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 <[email protected]>
1 parent 1c14a4b commit fff818b

File tree

1 file changed

+0
-5
lines changed
  • scripts/dts/python-devicetree/src/devicetree

1 file changed

+0
-5
lines changed

scripts/dts/python-devicetree/src/devicetree/dtlib.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,11 +1939,6 @@ def _err(msg) -> NoReturn:
19391939
# '\c', where c might be a single character or an octal/hex escape.
19401940
_unescape_re = re.compile(br'\\([0-7]{1,3}|x[0-9A-Fa-f]{1,2}|.)')
19411941

1942-
# #line directive (this is the regex the C tools use)
1943-
_line_re = re.compile(
1944-
r'^#(?:line)?[ \t]+([0-9]+)[ \t]+"((?:[^\\"]|\\.)*)"(?:[ \t]+[0-9]+)?',
1945-
re.MULTILINE)
1946-
19471942
def _init_tokens():
19481943
# Builds a (<token 1>)|(<token 2>)|... regex and returns it. The
19491944
# way this is constructed makes the token's value as an int appear

0 commit comments

Comments
 (0)