Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove unused impl

Marshall Bowers3189cd779eb0
diff --git a/crates/theme2/src/default_colors.rs b/crates/theme2/src/default_colors.rs
index 15c09e212bf..cad75f99356 100644
--- a/crates/theme2/src/default_colors.rs
+++ b/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(
diff --git a/crates/ui2/src/components/tab.rs b/crates/ui2/src/components/tab.rs
index fddd82b064a..d7b52c7ab3c 100644
--- a/crates/ui2/src/components/tab.rs
+++ b/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 {