From e5e9ad405545f42eb74c65273ed3e36178eeb1ae Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 13 Apr 2026 19:54:53 +0530 Subject: [PATCH] Remove unused code --- src/calibre/gui2/chat_widget.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/calibre/gui2/chat_widget.py b/src/calibre/gui2/chat_widget.py index 0c9ec6baac..5de43c6ea3 100644 --- a/src/calibre/gui2/chat_widget.py +++ b/src/calibre/gui2/chat_widget.py @@ -203,11 +203,6 @@ class ChatWidget(QWidget): bg = self.response_color if is_response else self.base_color self.blocks.append(self.wrap_content_in_padding_table(html, bg)) - def replace_last_block(self, body_html: str, header: Header = Header(), is_response: bool = False) -> None: - if self.blocks: - del self.blocks[-1] - self.add_block(body_html, header, is_response) - def show_message(self, msg_html: str, details: str = '', level: int = INFO) -> None: self.blocks = [] style = ''