Remove redundant variable assignment

This commit is contained in:
pagedown 2022-01-01 21:28:55 +08:00
parent 49fbeb9a56
commit f1b6fb397b
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
3 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -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):