From d8fb24c971f3c2457902efb132f6c9ca8bd8fe12 Mon Sep 17 00:00:00 2001 From: dst03106 Date: Sun, 1 Jun 2025 14:14:38 +0900 Subject: [PATCH] refactor: remove unused HTML formatting function from utils --- pr_agent/algo/utils.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 5eba1a91..2550e1ee 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -224,16 +224,6 @@ def convert_to_markdown_v2(output_data: dict, value = emphasize_header(value.strip(), only_markdown=True) markdown_text += f"{value}\n\n" elif 'todo sections' in key_nice.lower(): - - def format_multiline_html_item(file: str, line_range: Tuple[int, int], content: str, url: str) -> str: - label = f"{file} [{line_range[0]}-{line_range[1]}]" if line_range[0] != line_range[1] else f"{file} [{line_range[0]}]" - first_line, *rest_lines = content.strip().split("\n") - if rest_lines: - rest = "
".join(rest_lines) - return f"
  • {label}: {first_line}
    {rest}
  • " - else: - return f"
  • {label}: {first_line}
  • " - def format_todo_item(todo_item: TodoItem) -> str: relevant_file = todo_item.get('relevant_file', '').strip() line_range = todo_item.get('line_range', [])