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:
Yuxuan Shui 2019-09-16 22:42:54 +01:00
parent 1780f63914
commit 127b1ac3a4
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 0 additions and 3 deletions

View File

@ -1647,9 +1647,6 @@ static void finish_destroy_win(session_t *ps, struct managed_win **_w) {
}
free(w);
*_w = NULL;
return;
log_warn("Destroyed window is not in window list");
assert(false);
}
static void finish_map_win(struct managed_win **_w) {