Fixed vestigal compile errors

This commit is contained in:
Dane Jensen
2026-06-03 17:46:29 -07:00
parent 90ede52728
commit 7c908bca7a
5 changed files with 18 additions and 23 deletions

View File

@@ -611,8 +611,6 @@ layout_destroy_cell(struct window *w, struct layout_cell *lc,
struct layout_cell **lcroot)
{
struct layout_cell *lcother, *lcparent;
int direction;
int is_hidden;
/*
* If no parent, this is either a floating pane or the last
@@ -641,9 +639,6 @@ layout_destroy_cell(struct window *w, struct layout_cell *lc,
TAILQ_REMOVE(&lcparent->cells, lc, entry);
layout_free_cell(lc);
if (lcparent->type == LAYOUT_FLOATING)
return;
/*
* In tiled layouts, if the parent now has one cell, remove
* the parent from the tree and replace it by that cell.
@@ -687,10 +682,8 @@ layout_hide_cell(struct window *w, struct layout_cell *lc)
int direction;
lcparent = lc->parent;
if (lcparent == NULL ||
lcparent->type == LAYOUT_FLOATING) {
if (lcparent == NULL)
return;
}
/* Merge the space into the nearest non-hidden sibling. */
{
@@ -730,7 +723,7 @@ layout_show_cell(struct window *w, struct layout_cell *lc)
if (lc == NULL)
return;
lcparent = lc->parent;
if (lcparent == NULL || lcparent->type == LAYOUT_FLOATING)
if (lcparent == NULL)
return;
/*