From: Sami Kerola Date: Sun, 14 Aug 2016 20:21:45 +0000 (+0100) Subject: warnings: remove code that cannot be reached X-Git-Tag: v0.88~38^2~1^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84625f68aa1f7a8600cbcacb842c6d16a26696a;p=thirdparty%2Fmtr.git warnings: remove code that cannot be reached Variable block_split gets value from static constants. It is impossible to reach the true if-case, so remote the test can the code block. --- diff --git a/curses.c b/curses.c index e7555fa..8782538 100644 --- a/curses.c +++ b/curses.c @@ -518,9 +518,6 @@ void mtr_curses_init() { /* Initialize block_map. */ block_split = (NUM_FACTORS - 2) / 2; - if (block_split > 9) { - block_split = 9; - } for (i = 1; i <= block_split; i++) { block_map[i] = '0' + i; }