Remove unused impl

Marshall Bowers created

Change summary

crates/theme2/src/default_colors.rs | 21 +--------------------
crates/ui2/src/components/tab.rs    |  2 +-
2 files changed, 2 insertions(+), 21 deletions(-)

Detailed changes

crates/theme2/src/default_colors.rs 🔗

@@ -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(

crates/ui2/src/components/tab.rs 🔗

@@ -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 {