From f1cfbe9c361321d5107d1eb0a742bdcb4ed00fa5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Aug 2024 16:49:51 -0300 Subject: [PATCH] cleanup --- aider/coders/base_coder.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 50bbe0039..ffda3acec 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1665,14 +1665,4 @@ class Coder: return [] def apply_edits(self, edits): - for edit in edits: - path, content = edit - full_path = self.abs_root_path(path) - if not os.path.exists(full_path): - self.io.tool_error(f"Error: File {path} does not exist. Skipping edits.") - continue - - if not self.dry_run: - with open(full_path, "w", encoding=self.io.encoding) as f: - f.write(content) return