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.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2021-07-18 10:03:23 +08:00 committed by wenlingz
parent a39f2995ad
commit 523ce8ad31
1 changed files with 0 additions and 2 deletions

View File

@ -106,8 +106,6 @@ class NameStringFactory(Factory):
# Object name # Object name
if ord(char) == grammar.AML_DUAL_NAME_PREFIX: if ord(char) == grammar.AML_DUAL_NAME_PREFIX:
if acc and acc[-1] not in ["\\", "^"]:
acc += "."
acc += stream.get_fixed_length_string(4) acc += stream.get_fixed_length_string(4)
acc += "." acc += "."
acc += stream.get_fixed_length_string(4) acc += stream.get_fixed_length_string(4)