From 2b819a30972448292c8dfd8fdeb7cf16e4716969 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 2 May 2024 15:19:44 -0400 Subject: [PATCH] other: comment out some dead code (#1456) --- .../tui_widget/time_chart/canvas.rs | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/canvas/components/tui_widget/time_chart/canvas.rs b/src/canvas/components/tui_widget/time_chart/canvas.rs index 9afb10e8..be723bee 100644 --- a/src/canvas/components/tui_widget/time_chart/canvas.rs +++ b/src/canvas/components/tui_widget/time_chart/canvas.rs @@ -140,8 +140,8 @@ struct Layer { } trait Grid: Debug { - fn width(&self) -> u16; - fn height(&self) -> u16; + // fn width(&self) -> u16; + // fn height(&self) -> u16; fn resolution(&self) -> (f64, f64); fn paint(&mut self, x: usize, y: usize, color: Color); fn save(&self) -> Layer; @@ -169,13 +169,13 @@ impl BrailleGrid { } impl Grid for BrailleGrid { - fn width(&self) -> u16 { - self.width - } + // fn width(&self) -> u16 { + // self.width + // } - fn height(&self) -> u16 { - self.height - } + // fn height(&self) -> u16 { + // self.height + // } fn resolution(&self) -> (f64, f64) { ( @@ -240,13 +240,13 @@ impl CharGrid { } impl Grid for CharGrid { - fn width(&self) -> u16 { - self.width - } + // fn width(&self) -> u16 { + // self.width + // } - fn height(&self) -> u16 { - self.height - } + // fn height(&self) -> u16 { + // self.height + // } fn resolution(&self) -> (f64, f64) { (f64::from(self.width) - 1.0, f64::from(self.height) - 1.0) @@ -321,13 +321,13 @@ impl HalfBlockGrid { } impl Grid for HalfBlockGrid { - fn width(&self) -> u16 { - self.width - } + // fn width(&self) -> u16 { + // self.width + // } - fn height(&self) -> u16 { - self.height - } + // fn height(&self) -> u16 { + // self.height + // } fn resolution(&self) -> (f64, f64) { (f64::from(self.width), f64::from(self.height) * 2.0)