mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-09-02 11:13:51 +00:00
remove some unimportant optimizations
This commit is contained in:
parent
b1e03c5091
commit
f8d88ddcce
1 changed files with 0 additions and 6 deletions
|
@ -90,12 +90,6 @@ impl DiffChecker {
|
|||
}
|
||||
|
||||
pub fn check_dump_diff(&self, mut dumps: [&str; 2], label_of_change_from_dump_0_to_dump_1: &str) {
|
||||
// Performance optimizations
|
||||
if dumps[0] == dumps[1] {
|
||||
return;
|
||||
}
|
||||
dumps = trim_matching_chunks_at_beginning_and_end(dumps);
|
||||
|
||||
let [before_chunks, after_chunks] = dumps.map(|dump| {
|
||||
dump
|
||||
.split("\n\n")
|
||||
|
|
Loading…
Reference in a new issue