Skip to content

Commit c8a86d9

Browse files
committed
Clean
1 parent 816568f commit c8a86d9

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed

src/elements/job.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ impl Job {
146146
}
147147
}
148148

149-
pub fn pretty_print(&mut self, indent_num: usize,semicolon: &mut bool, printed: &mut bool, job_end: &str) {
149+
pub fn pretty_print(&mut self, indent_num: usize,
150+
semicolon: &mut bool,
151+
printed: &mut bool, job_end: &str) {
150152
let tmp = self.text.clone();
151153
let job_text = tmp.trim_ascii();
152154

src/elements/script.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,6 @@ impl Script {
3737
let mut printed = false;
3838
for (i, job) in self.jobs.iter_mut().enumerate() {
3939
job.pretty_print(indent_num, &mut semicolon, &mut printed, &self.job_ends[i]);
40-
/*
41-
42-
let tmp = job.text.clone();
43-
let job_text = tmp.trim_ascii();
44-
45-
if job_text.is_empty() {
46-
semicolon = printed;
47-
continue;
48-
}
49-
50-
if semicolon {
51-
println!(";");
52-
semicolon = false;
53-
} else if printed {
54-
println!();
55-
}
56-
57-
let tmp = self.job_ends[i].clone();
58-
let job_end = tmp.trim_ascii_end();
59-
60-
let text = job_text.to_owned() + job_end;
61-
62-
for _ in 0..indent_num {
63-
print!(" ");
64-
}
65-
print!("{}", &text);
66-
printed = true;
67-
*/
6840
}
6941
println!();
7042
}

0 commit comments

Comments
 (0)