From 127b1ac3a4657739feb015b9549d9a57f3ab80bd Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 16 Sep 2019 22:42:54 +0100 Subject: [PATCH] win: remove some unreachable code finish_destroy_win has unreachable code after a return statement Signed-off-by: Yuxuan Shui --- src/win.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/win.c b/src/win.c index 6c9ec84..2b493c6 100644 --- a/src/win.c +++ b/src/win.c @@ -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) {