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

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(

View file

@ -1,6 +1,6 @@
use crate::prelude::*;
use crate::{Icon, IconColor, IconElement, Label, LabelColor};
use gpui2::{black, red, Div, ElementId, Render, View, VisualContext};
use gpui2::{red, Div, ElementId, Render, View, VisualContext};
#[derive(Component, Clone)]
pub struct Tab {