Remove unused impl

This commit is contained in:
Marshall Bowers
2023-11-01 10:52:25 -04:00
parent d2a8f972f3
commit 3189cd779e
2 changed files with 2 additions and 21 deletions
+1 -20
View File
@@ -1,10 +1,9 @@
use gpui2::{hsla, Hsla, Rgba};
use gpui2::{hsla, Rgba};
use crate::{
colors::{GitStatusColors, PlayerColor, PlayerColors, StatusColors, SystemColors, ThemeColors},
scale::{ColorScaleSet, ColorScales},
syntax::SyntaxTheme,
ColorScaleStep,
};
fn neutral() -> ColorScaleSet {
@@ -292,24 +291,6 @@ struct DefaultColorScaleSet {
dark_alpha: [&'static str; 12],
}
impl DefaultColorScaleSet {
pub fn light(&self, index: ColorScaleStep) -> Hsla {
Rgba::try_from(self.light[index - 1]).unwrap().into()
}
pub fn light_alpha(&self, index: ColorScaleStep) -> Hsla {
Rgba::try_from(self.light_alpha[index - 1]).unwrap().into()
}
pub fn dark(&self, index: ColorScaleStep) -> Hsla {
Rgba::try_from(self.dark[index - 1]).unwrap().into()
}
pub fn dark_alpha(&self, index: ColorScaleStep) -> Hsla {
Rgba::try_from(self.dark_alpha[index - 1]).unwrap().into()
}
}
impl From<DefaultColorScaleSet> for ColorScaleSet {
fn from(default: DefaultColorScaleSet) -> Self {
Self::new(