Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Feb 5, 2020
1 parent d4942ea commit 5dec79f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/draw_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ impl DrawState {
pub struct DrawCache<'a> {
syntax: &'a syntect::parsing::SyntaxReference,
syntax_set: &'a syntect::parsing::SyntaxSet,
// highlighter: Highlighter<'a>,
bg: Color,
state_cache: Vec<DrawState>,
draw_cache: HashMap<usize, Vec<(char, CharStyle)>>,
Expand All @@ -166,12 +165,10 @@ impl<'a> DrawCache<'a> {
const CACHE_WIDTH: usize = 100;

pub fn new(syntax: &syntax::Syntax<'a>) -> Self {
// let highlighter = Highlighter::new(syntax.theme);
let bg = syntax.theme.settings.background.unwrap().into();
Self {
syntax: syntax.syntax,
syntax_set: syntax.syntax_set,
// highlighter,
state_cache: Vec::new(),
draw_cache: HashMap::new(),
draw_cache_pseudo: HashMap::new(),
Expand Down

0 comments on commit 5dec79f

Please sign in to comment.