diff options
author | Teddy Wing | 2020-07-29 00:59:01 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-29 00:59:01 +0200 |
commit | 9430c40a245a5bf9bfb138679a51e48dc629e710 (patch) | |
tree | 02c6eb5887eb7e74656636fa6824ef5b28176660 /src/suggestion.rs | |
parent | 4b994b808a8b0b03e95067c352e9d230ebec92d6 (diff) | |
download | git-suggestion-9430c40a245a5bf9bfb138679a51e48dc629e710.tar.bz2 |
Suggestion: Remove unused `suggestion()` and `suggestion_patch()`
These methods are no longer used.
Diffstat (limited to 'src/suggestion.rs')
-rw-r--r-- | src/suggestion.rs | 10 |
1 files changed, 0 insertions, 10 deletions
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, ""); |