Skip to content

Commit a6450df

Browse files
committed
drop: removed unused code
1 parent db8401f commit a6450df

File tree

3 files changed

+0
-65
lines changed

3 files changed

+0
-65
lines changed

crates/cli/src/analyser/diagnostics.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ impl Reporter {
6666
.filter(|p| p.kind.severity() == Severity::Warning)
6767
.collect()
6868
}
69-
70-
pub fn get_debug(&self) -> Vec<&Diagnose> {
71-
self.diagnose
72-
.iter()
73-
.filter(|p| p.kind.severity() == Severity::Debug)
74-
.collect()
75-
}
7669
}
7770

7871
pub enum Severity {

crates/cli/src/formatter.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ pub fn default(string: String) {
66
println!("{}", string);
77
}
88

9-
pub fn default_table<I, T>(iter: I)
10-
where
11-
I: IntoIterator<Item = T>,
12-
T: Tabled,
13-
{
14-
println!("{}", print_table(iter));
15-
}
16-
179
pub fn success(string: String) {
1810
println!("\n{}: {}", "success".green(), string);
1911
}
@@ -22,10 +14,6 @@ pub fn info(string: String) {
2214
println!("\n{}: {}", "info".blue(), string);
2315
}
2416

25-
pub fn success_highlight(highlight: String, string: String) {
26-
println!("{} {}", highlight.green(), string);
27-
}
28-
2917
pub fn success_table<I, T>(iter: I)
3018
where
3119
I: IntoIterator<Item = T>,
@@ -46,30 +34,10 @@ pub fn error_highlight(highlight: String, string: String) {
4634
println!("{} {}", highlight.red(), string);
4735
}
4836

49-
pub fn error_table<I, T>(iter: I)
50-
where
51-
I: IntoIterator<Item = T>,
52-
T: Tabled,
53-
{
54-
println!("{}", print_table(iter).red());
55-
}
56-
5737
pub fn warning(string: String, path: &String) -> String {
5838
format!("\n{}: {} {}", "warning".yellow(), string, print_path(path))
5939
}
6040

61-
pub fn warning_highlight(highlight: String, string: String) {
62-
println!("{} {}", highlight.yellow(), string);
63-
}
64-
65-
pub fn warning_table<I, T>(iter: I)
66-
where
67-
I: IntoIterator<Item = T>,
68-
T: Tabled,
69-
{
70-
println!("{}", print_table(iter).yellow());
71-
}
72-
7341
fn print_table<I, T>(iter: I) -> String
7442
where
7543
I: IntoIterator<Item = T>,

crates/cli/src/table.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,6 @@ pub struct RuntimeFunctionRow {
2626
runtime_name: String,
2727
}
2828

29-
#[derive(Tabled)]
30-
pub struct ErrorRow {
31-
#[tabled(rename = "#")]
32-
index: usize,
33-
#[tabled(rename = "Type")]
34-
definition_type: String,
35-
#[tabled(rename = "Definition")]
36-
definition: String,
37-
#[tabled(rename = "Error")]
38-
error: String,
39-
}
40-
4129
#[derive(Tabled)]
4230
pub struct FeatureSummaryRow {
4331
#[tabled(rename = "Feature")]
@@ -50,20 +38,6 @@ pub struct FeatureSummaryRow {
5038
runtime_functions: usize,
5139
}
5240

53-
#[derive(Tabled)]
54-
pub struct GeneralErrorRow {
55-
#[tabled(rename = "#")]
56-
index: usize,
57-
#[tabled(rename = "Feature")]
58-
feature_name: String,
59-
#[tabled(rename = "Type")]
60-
definition_type: String,
61-
#[tabled(rename = "Definition")]
62-
definition: String,
63-
#[tabled(rename = "Error")]
64-
error: String,
65-
}
66-
6741
pub fn feature_table(
6842
feature: &Feature,
6943
) -> (Vec<FlowTypeRow>, Vec<DataTypeRow>, Vec<RuntimeFunctionRow>) {

0 commit comments

Comments
 (0)