From 57d3f65e2e08c3abc5147fd0a0d115f8fab1b47d Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 31 Dec 2020 10:20:22 -0500 Subject: Add styles for file path and line number in hunk header Fixes #481 --- src/style.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/style.rs') diff --git a/src/style.rs b/src/style.rs index a15f3eab..350023ca 100644 --- a/src/style.rs +++ b/src/style.rs @@ -73,19 +73,6 @@ impl Style { } } - pub fn decoration_ansi_term_style(&self) -> Option { - match self.decoration_style { - DecorationStyle::Box(style) => Some(style), - DecorationStyle::Underline(style) => Some(style), - DecorationStyle::Overline(style) => Some(style), - DecorationStyle::UnderOverline(style) => Some(style), - DecorationStyle::BoxWithUnderline(style) => Some(style), - DecorationStyle::BoxWithOverline(style) => Some(style), - DecorationStyle::BoxWithUnderOverline(style) => Some(style), - DecorationStyle::NoDecoration => None, - } - } - pub fn is_applied_to(&self, s: &str) -> bool { match ansi::parse_first_style(s) { Some(parsed_style) => ansi_term_style_equality(parsed_style, self.ansi_term_style), -- cgit v1.2.3