win: remove some unreachable code
finish_destroy_win has unreachable code after a return statement Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
1780f63914
commit
127b1ac3a4
|
@ -1647,9 +1647,6 @@ static void finish_destroy_win(session_t *ps, struct managed_win **_w) {
|
||||||
}
|
}
|
||||||
free(w);
|
free(w);
|
||||||
*_w = NULL;
|
*_w = NULL;
|
||||||
return;
|
|
||||||
log_warn("Destroyed window is not in window list");
|
|
||||||
assert(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void finish_map_win(struct managed_win **_w) {
|
static void finish_map_win(struct managed_win **_w) {
|
||||||
|
|
Loading…
Reference in New Issue