Skip to content

Commit

Permalink
extension: stop returning the results from the __parse() method
Browse files Browse the repository at this point in the history
Now that parsing is a separate step, the results are no longer needed
while parsing.
  • Loading branch information
jnikula committed Jul 17, 2023
1 parent 87f5298 commit 31cdd94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hawkmoth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __parse(self, filename):
key = (filename, tuple(clang_args))

if key in parsed_files:
return parsed_files[key]
return

# Tell Sphinx about the dependency
self.env.note_dependency(filename)
Expand All @@ -84,8 +84,6 @@ def __parse(self, filename):

parsed_files[key] = docstrings

return docstrings

def __parsed_files(self, filter_filenames=None, filter_clang_args=None):
parsed_files = self.env.temp_data.get('hawkmoth_parsed_files', {})

Expand Down

0 comments on commit 31cdd94

Please sign in to comment.