From 69ed81d2495c6eb548c44e73c0e9ed359d3820f0 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 28 Jun 2016 09:18:54 -0700 Subject: Refactor Tty and Grid creation into Term::new This moves more logic out of main() and prepares the Term type to handle resizing. By providing all size data to Term, it is now possible to implement a resize function there which handles all resizing logic save for the rendering subsystem. --- src/grid.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/grid.rs') diff --git a/src/grid.rs b/src/grid.rs index 9ce16c81..42dcf210 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -8,11 +8,6 @@ use util::Rotate; use term::{Cursor, DEFAULT_FG, DEFAULT_BG}; use ::Rgb; -/// Calculate the number of cells for an axis -pub fn num_cells_axis(cell_width: u32, screen_width: u32) -> u32 { - (screen_width as f64 / cell_width as f64) as u32 -} - #[derive(Clone, Debug)] pub struct Cell { pub c: char, -- cgit