Remove an unused method `TextChangelogFormat.version_title_text` never worked: it's missing a parameter in the call to `re.sub`. Fortunately it's unused, so just remove it. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/scripts/assemble_changelog.py b/scripts/assemble_changelog.py index b6c0c72..69ee1b1 100755 --- a/scripts/assemble_changelog.py +++ b/scripts/assemble_changelog.py
@@ -94,11 +94,6 @@ raise NotImplementedError @classmethod - def version_title_text(cls, version_title): - """Return the text of a formatted version section title.""" - raise NotImplementedError - - @classmethod def split_categories(cls, version_body): """Split a changelog version section body into categories. @@ -141,10 +136,6 @@ top_version_title, top_version_body, changelog_file_content[top_version_end:]) - @classmethod - def version_title_text(cls, version_title): - return re.sub(r'\n.*', version_title, flags=re.DOTALL) - _category_title_re = re.compile(r'(^\w.*)\n+', re.MULTILINE) @classmethod def split_categories(cls, version_body):