Remove unused section in layout_needs_fixed()
This commit is contained in:
parent
f50ea711e6
commit
1dc22d5991
1 changed files with 0 additions and 10 deletions
|
|
@ -177,16 +177,6 @@ def layout_needs_fixed(layout: dict[str, dict[str, Any]]) -> bool:
|
|||
get_pane_size(pane)[0] != data['width'] for pane in data['Panes']
|
||||
)
|
||||
|
||||
# TODO: Re-enable?
|
||||
## Group panes
|
||||
#for group in ('Title', 'Info'):
|
||||
# num_panes = len(layout[group]['Panes'])
|
||||
# if num_panes <= 1:
|
||||
# continue
|
||||
# width = int( (get_pane_size()[0] - (1 - num_panes)) / num_panes )
|
||||
# for pane in layout[group]['Panes']:
|
||||
# needs_fixed = needs_fixed or abs(get_pane_size(pane)[0] - width) > 2
|
||||
|
||||
# Done
|
||||
return needs_fixed
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue