From 94d27a634e82694b15bd87a96cf7e7baea342a80 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 24 Feb 2026 00:27:49 +0000 Subject: [PATCH] Remove dead code from living files Delete unused CommandResult class from commands/base.py and unused format_dm_response method from responder.py. Co-Authored-By: Claude Opus 4.6 --- meshai/commands/base.py | 20 -------------------- meshai/responder.py | 13 ------------- 2 files changed, 33 deletions(-) diff --git a/meshai/commands/base.py b/meshai/commands/base.py index b7a78c1..84a16ba 100644 --- a/meshai/commands/base.py +++ b/meshai/commands/base.py @@ -50,23 +50,3 @@ class CommandHandler(ABC): Response string to send back """ pass - - -class CommandResult: - """Result from command execution.""" - - def __init__( - self, - response: str, - success: bool = True, - suppress_history: bool = True, - ): - """ - Args: - response: Text response to send - success: Whether command succeeded - suppress_history: If True, don't add to conversation history - """ - self.response = response - self.success = success - self.suppress_history = suppress_history diff --git a/meshai/responder.py b/meshai/responder.py index 21bfc49..c004374 100644 --- a/meshai/responder.py +++ b/meshai/responder.py @@ -138,19 +138,6 @@ class Responder: return 0 - def format_dm_response(self, text: str, sender_name: str) -> str: - """Format response for DM context. - - Args: - text: Response text - sender_name: Name of recipient - - Returns: - Formatted response (currently unchanged) - """ - # Could prefix with name or add other formatting - return text - def format_channel_response( self, text: str, sender_name: str, mention_sender: bool = False ) -> str: