board_inspector: Remove dead code in parser.py
A DualNamePath clause is a NamePath that only follows rootchar or
prefixpath. Thus, it is never necessary to check if a dot is necessary for
separating segments before a DualNamePath. This patch removes the code that
conduct that check.
@@ -106,8 +106,6 @@ class NameStringFactory(Factory):
# Object name
if ord(char) == grammar.AML_DUAL_NAME_PREFIX:
- if acc and acc[-1] not in ["\\", "^"]:
- acc += "."
acc += stream.get_fixed_length_string(4)
acc += "."
acc += stream.get_fixed_length_string(4)
