Remove redundant variable assignment
This commit is contained in:
parent
49fbeb9a56
commit
f1b6fb397b
@ -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
|
dest = bytearray(width * height) if invert else buf
|
||||||
|
|
||||||
for r in range(number_of_rows):
|
for r in range(number_of_rows):
|
||||||
y = r * square_sz
|
|
||||||
is_odd = r % 2 != 0
|
is_odd = r % 2 != 0
|
||||||
if is_odd:
|
if is_odd:
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -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)
|
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:
|
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
|
num_windows = all_windows.num_groups
|
||||||
ncols, nrows, special_rows, special_col = calc_grid_size(num_windows)
|
ncols, nrows, special_rows, special_col = calc_grid_size(num_windows)
|
||||||
|
|
||||||
|
|||||||
@ -360,7 +360,6 @@ class Tab: # {{{
|
|||||||
else:
|
else:
|
||||||
cmd = resolved_shell(get_options())
|
cmd = resolved_shell(get_options())
|
||||||
check_for_suitability = False
|
check_for_suitability = False
|
||||||
cmd = self.args.args or resolved_shell(get_options())
|
|
||||||
if check_for_suitability:
|
if check_for_suitability:
|
||||||
old_exe = cmd[0]
|
old_exe = cmd[0]
|
||||||
if not os.path.isabs(old_exe):
|
if not os.path.isabs(old_exe):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user