From 9430c40a245a5bf9bfb138679a51e48dc629e710 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 29 Jul 2020 00:59:01 +0200 Subject: Suggestion: Remove unused `suggestion()` and `suggestion_patch()` These methods are no longer used. --- src/suggestion.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/suggestion.rs b/src/suggestion.rs index b89bd55..baf41d8 100644 --- a/src/suggestion.rs +++ b/src/suggestion.rs @@ -95,16 +95,6 @@ impl Suggestion { ) } - fn suggestion_patch(&self) -> String { - let re = Regex::new(r"(?s).*(?-s)```\s*suggestion.*\n").unwrap(); - let s = re.replace(&self.comment, "+"); - s.replace("```", "") - } - - fn suggestion(&self) -> String { - self.suggestion_with_line_ending(&LineEnding::Lf) - } - fn suggestion_with_line_ending(&self, line_ending: &LineEnding) -> String { let re = Regex::new(r"(?s).*(?-s)```\s*suggestion.*\n").unwrap(); let s = re.replace(&self.comment, ""); -- cgit v1.2.3