Commit 7429cb98 authored by Tristan Gingold's avatar Tristan Gingold

vhdl_parser: remove unused variable.

parent 9c3a2375
...@@ -217,7 +217,6 @@ class VHDLParser(DepParser): ...@@ -217,7 +217,6 @@ class VHDLParser(DepParser):
buf = re.sub(function_pattern, do_function, buf) buf = re.sub(function_pattern, do_function, buf)
# instantiations # instantiations
libraries = set([dep_file.library])
instance_pattern = re.compile( instance_pattern = re.compile(
r"^\s*(?P<LABEL>\w+)\s*:" r"^\s*(?P<LABEL>\w+)\s*:"
r"\s*(?:entity\s+(?P<LIB>\w+)\.)?(?P<ENTITY>\w+)" r"\s*(?:entity\s+(?P<LIB>\w+)\.)?(?P<ENTITY>\w+)"
...@@ -251,7 +250,6 @@ class VHDLParser(DepParser): ...@@ -251,7 +250,6 @@ class VHDLParser(DepParser):
matches as indexed plain strings. It adds the used libraries matches as indexed plain strings. It adds the used libraries
to the file's 'library' property""" to the file's 'library' property"""
logging.debug("use library %s", text.group(1)) logging.debug("use library %s", text.group(1))
libraries.add(text.group(1))
return "<hdlmake library %s>" % text.group(1) return "<hdlmake library %s>" % text.group(1)
buf = re.sub(library_pattern, do_library, buf) buf = re.sub(library_pattern, do_library, buf)
# logging.debug("\n" + buf) # print modified buffer. # logging.debug("\n" + buf) # print modified buffer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment