From 1dc22d5991ffc8c4b25a75ee6a5812b5f5a5f36a Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 29 May 2023 17:31:03 -0700 Subject: [PATCH] Remove unused section in layout_needs_fixed() --- scripts/wk/ui/tmux.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/wk/ui/tmux.py b/scripts/wk/ui/tmux.py index ca040514..45981264 100644 --- a/scripts/wk/ui/tmux.py +++ b/scripts/wk/ui/tmux.py @@ -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