From 4e003c392e86d5627502ba6cbbd0df493b24e087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 18 Nov 2013 23:24:58 +0100 Subject: [PATCH] AST: code cleanup. Remove unreachable 'break' after 'return' --- lib/checkother.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 598dfbd3e..cbd59ae66 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -1315,19 +1315,14 @@ template static T getvalue(const int test, const T value1, const T valu switch (test) { case 1: return std::min(value1, value2) - (T)1; - break; case 2: return value1; - break; case 3: return (value1 + value2) / (T)2; - break; case 4: return value2; - break; case 5: return std::max(value1, value2) + (T)1; - break; }; return 0; }