From f1b6fb397b22beb9a829a706373905e9a498ea90 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 1 Jan 2022 21:28:55 +0800 Subject: [PATCH] Remove redundant variable assignment --- kitty/fonts/box_drawing.py | 1 - kitty/layout/grid.py | 1 - kitty/tabs.py | 1 - 3 files changed, 3 deletions(-) diff --git a/kitty/fonts/box_drawing.py b/kitty/fonts/box_drawing.py index 704e03c8b..9efb9b907 100644 --- a/kitty/fonts/box_drawing.py +++ b/kitty/fonts/box_drawing.py @@ -624,7 +624,6 @@ def shade(buf: BufType, width: int, height: int, light: bool = False, invert: bo dest = bytearray(width * height) if invert else buf for r in range(number_of_rows): - y = r * square_sz is_odd = r % 2 != 0 if is_odd: continue diff --git a/kitty/layout/grid.py b/kitty/layout/grid.py index 022571e95..d855697c5 100644 --- a/kitty/layout/grid.py +++ b/kitty/layout/grid.py @@ -64,7 +64,6 @@ class Grid(Layout): return layout_func(num_windows, bias=variable_bias(num_windows, biased_map) if num_windows > 1 else None) def apply_bias(self, idx: int, increment: float, all_windows: WindowList, is_horizontal: bool = True) -> bool: - b = self.biased_cols if is_horizontal else self.biased_rows num_windows = all_windows.num_groups ncols, nrows, special_rows, special_col = calc_grid_size(num_windows) diff --git a/kitty/tabs.py b/kitty/tabs.py index 0ff9ac09e..c96e1014d 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -360,7 +360,6 @@ class Tab: # {{{ else: cmd = resolved_shell(get_options()) check_for_suitability = False - cmd = self.args.args or resolved_shell(get_options()) if check_for_suitability: old_exe = cmd[0] if not os.path.isabs(old_exe):