Skip to content

Commit

Permalink
Remove LanguageType
Browse files Browse the repository at this point in the history
  • Loading branch information
spenserblack committed Aug 25, 2023
1 parent cce8025 commit 07dd12f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/info/langs/language.tera
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ pub struct Colors {
true_colors: Option<Vec<DynColors>>,
}

#[derive(Clone, PartialEq, Eq, Debug, clap::ValueEnum)]
pub enum LanguageType {
Programming,
Markup,
Prose,
Data,
}

#[derive(Clone, Copy, PartialEq, Eq, Hash, EnumIter, clap::ValueEnum, Debug, Serialize)]
#[allow(clippy::upper_case_acronyms)]
#[clap(rename_all = "lowercase")]
Expand Down Expand Up @@ -91,14 +83,6 @@ impl Language {
}
}

pub fn get_type(&self) -> LanguageType {
match self {
{% for language, attrs in languages -%}
Language::{{ language }} => LanguageType::{{ attrs.type | title }},
{% endfor %}
}
}

pub fn get_circle_color(&self) -> DynColors {
match self {
{% for language, attrs in languages -%}
Expand Down

0 comments on commit 07dd12f

Please sign in to comment.