SdfTerm: remove outdated lines

This commit is contained in:
Michael Sippel 2021-09-10 11:02:35 +02:00
parent 9633986f6c
commit b708545b96
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -197,14 +197,7 @@ impl SdfTerm {
} else { } else {
self.fg_layers.get_mut(pt).unwrap().0 = false; self.fg_layers.get_mut(pt).unwrap().0 = false;
} }
let has_bg = atom.style.bg_color.is_some();
let has_fg = atom.c.unwrap_or(' ') != ' ';
self.bg_layers.get_mut(pt).unwrap().0 = has_bg;
self.fg_layers.get_mut(pt).unwrap().0 = has_fg;
} else { } else {
self.bg_layers.get_mut(pt).unwrap().0 = false; self.bg_layers.get_mut(pt).unwrap().0 = false;
self.fg_layers.get_mut(pt).unwrap().0 = false; self.fg_layers.get_mut(pt).unwrap().0 = false;