Remove unused code

This commit is contained in:
Keavon Chambers
2020-05-23 12:47:36 -07:00
parent a9859b4bb4
commit 8fb1a703af
7 changed files with 18 additions and 21 deletions
+2
View File
@@ -22,6 +22,7 @@ pub enum ColorPalette {
}
impl ColorPalette {
#[allow(dead_code)]
pub fn get_color_srgb(self) -> Color {
let grayscale = match self {
ColorPalette::Black => 0 * 17, // #000000
@@ -56,6 +57,7 @@ impl ColorPalette {
Color::new(rgba.0 as f32 / 255.0, rgba.1 as f32 / 255.0, rgba.2 as f32 / 255.0, rgba.3 as f32 / 255.0)
}
#[allow(dead_code)]
pub fn get_color_linear(self) -> Color {
let standard_rgb = ColorPalette::get_color_srgb(self);