Skip to content

Commit 07dd12f

Browse files
committed
Remove LanguageType
1 parent cce8025 commit 07dd12f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/info/langs/language.tera

-16
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ pub struct Colors {
1111
true_colors: Option<Vec<DynColors>>,
1212
}
1313

14-
#[derive(Clone, PartialEq, Eq, Debug, clap::ValueEnum)]
15-
pub enum LanguageType {
16-
Programming,
17-
Markup,
18-
Prose,
19-
Data,
20-
}
21-
2214
#[derive(Clone, Copy, PartialEq, Eq, Hash, EnumIter, clap::ValueEnum, Debug, Serialize)]
2315
#[allow(clippy::upper_case_acronyms)]
2416
#[clap(rename_all = "lowercase")]
@@ -91,14 +83,6 @@ impl Language {
9183
}
9284
}
9385

94-
pub fn get_type(&self) -> LanguageType {
95-
match self {
96-
{% for language, attrs in languages -%}
97-
Language::{{ language }} => LanguageType::{{ attrs.type | title }},
98-
{% endfor %}
99-
}
100-
}
101-
10286
pub fn get_circle_color(&self) -> DynColors {
10387
match self {
10488
{% for language, attrs in languages -%}

0 commit comments

Comments
 (0)