Skip to content

Commit

Permalink
Remove support for "head" config file parameter
Browse files Browse the repository at this point in the history
It is not used because the `--prologue' option provides similar
functionality.
  • Loading branch information
rmisev committed Aug 11, 2024
1 parent 1112e0b commit 0580e70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/amalgamate/amalgamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def find_included_file(self, file_path, source_dir):

def __init__(self, args):
with open(args.config, 'r') as f:
self.head = [] # default
self.ignore_includes = False
config = json.loads(f.read())
for key in config:
Expand All @@ -87,10 +86,6 @@ def generate(self):
print(" working_dir = {0}".format(os.getcwd()))
print(" include_paths = {0}".format(self.include_paths))
print("Creating amalgamation:")
for file_path in self.head:
actual_path = self.actual_path(file_path)
with io.open(actual_path, mode="r", encoding="utf-8") as f:
amalgamation += f.read()
for file_path in self.sources:
# Do not check the include paths while processing the source
# list, all given source paths must be correct.
Expand Down

0 comments on commit 0580e70

Please sign in to comment.