1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 07:46:59 +03:00

remove unused variables

This commit is contained in:
Wez Furlong 2018-02-17 12:00:29 -08:00
parent 261a6cb6c6
commit 98c66b1919

View File

@ -742,16 +742,11 @@ impl<'a> TerminalWindow<'a> {
&self, &self,
target: &mut glium::Frame, target: &mut glium::Frame,
x: isize, x: isize,
line_idx: usize,
y: isize, y: isize,
base_y: isize, base_y: isize,
cell_idx: usize,
info: &GlyphInfo,
glyph: &Rc<CachedGlyph>, glyph: &Rc<CachedGlyph>,
image: &glium::texture::SrgbTexture2d, image: &glium::texture::SrgbTexture2d,
metric_width: usize, metric_width: usize,
cursor: &CursorPosition,
attrs: &CellAttributes,
glyph_color: RgbColor, glyph_color: RgbColor,
bg_color: RgbColor, bg_color: RgbColor,
) -> Result<(), Error> { ) -> Result<(), Error> {
@ -850,8 +845,6 @@ impl<'a> TerminalWindow<'a> {
let glyph_info = self.shape_text(&cluster.text, &style)?; let glyph_info = self.shape_text(&cluster.text, &style)?;
for info in glyph_info.iter() { for info in glyph_info.iter() {
let cell_idx = cluster.byte_to_cell_idx[info.cluster as usize]; let cell_idx = cluster.byte_to_cell_idx[info.cluster as usize];
let cell = &line.cells[cell_idx];
let cell_print_width = cell.width();
let cluster_width = info.num_cells as usize * metric_width; let cluster_width = info.num_cells as usize * metric_width;
@ -927,16 +920,11 @@ impl<'a> TerminalWindow<'a> {
self.render_glyph( self.render_glyph(
target, target,
x, x,
line_idx,
y, y,
base_y, base_y,
cell_idx,
&info,
&glyph, &glyph,
texture, texture,
metric_width, metric_width,
&cursor,
&attrs,
glyph_color, glyph_color,
bg_color, bg_color,
)?; )?;