From 7e59f82cdedebcaae6045ac646e251d00629e7d6 Mon Sep 17 00:00:00 2001 From: daa Date: Tue, 12 Dec 2017 21:51:38 +0300 Subject: [PATCH] Remove unused function --- src/color.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/color.rs b/src/color.rs index 2715cd7..d8a0e05 100644 --- a/src/color.rs +++ b/src/color.rs @@ -64,20 +64,6 @@ impl ColorModel { } } - pub fn cell_colors<'a>(&'a self, cell: &'a Cell) -> (Option<&'a Color>, &'a Color) { - if !cell.attrs.reverse { - ( - cell.attrs.background.as_ref(), - cell.attrs.foreground.as_ref().unwrap_or(&self.fg_color), - ) - } else { - ( - cell.attrs.foreground.as_ref().or(Some(&self.fg_color)), - cell.attrs.background.as_ref().unwrap_or(&self.bg_color), - ) - } - } - pub fn cell_fg<'a>(&'a self, cell: &'a Cell) -> Option<&'a Color> { if !cell.attrs.reverse { cell.attrs.foreground.as_ref()