From fc5c040b83e3f2825381133d27c94450e7227d65 Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:18:27 +0300 Subject: [PATCH] fix: drop unused var `added_fnames` from `cmd_add` --- aider/commands.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 466332150..3343d2808 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -555,8 +555,6 @@ class Commands: def cmd_add(self, args): "Add files to the chat so aider can edit them or review them in detail" - added_fnames = [] - all_matched_files = set() filenames = parse_quoted_filenames(args) @@ -618,7 +616,6 @@ class Commands: self.io.tool_output( f"Moved {matched_file} from read-only to editable files in the chat" ) - added_fnames.append(matched_file) else: self.io.tool_error( f"Cannot add {matched_file} as it's not part of the repository" @@ -637,7 +634,6 @@ class Commands: self.coder.abs_fnames.add(abs_file_path) self.io.tool_output(f"Added {matched_file} to the chat") self.coder.check_added_files() - added_fnames.append(matched_file) def completions_drop(self): files = self.coder.get_inchat_relative_files()