Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymcc committed Oct 28, 2024
1 parent 4ee5396 commit ac4f0eb
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions aider/command_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,38 +310,6 @@ def get_assistant_mdstream(self):
def assistant_output(self, message, pretty=None):
if not message:
return

# type = ""
# text = ""
# filename = ""
# code = ""
#
# if self.edit_format == "whole":
# pattern = re.compile(r"^(.*?)(?:\n){4}([\w\.]+)\n+```\n(.*?)```$", re.DOTALL)
# match = pattern.match(message)
#
# type = "whole"
# text = match.group(1).strip()
# filename = match.group(2).strip()
# code = match.group(3).strip()
# elif self.edit_format == "diff":
# test = message
# pattern = re.compile(r"^(.*?)(?:\n){4}([\w\.]+)\n+```\n(.*?)```$", re.DOTALL)
#
# match = pattern.match(message)
#
# type = "diff"
# text = match.group(1).strip()
# filename = match.group(2).strip()
# code = match.group(3).strip()
#
# msg = {
# "cmd": "assistant",
# "type": type,
# "value": json.dumps(text),
# "filename": filename,
# "code": code
# }
self.send_message("assistant", message)

def print(self, message=""):
Expand Down

0 comments on commit ac4f0eb

Please sign in to comment.