From: Vadim Zeitlin Date: Sat, 8 Dec 2012 00:37:36 +0000 (+0000) Subject: Remove unnecessary default from a switch statement. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b215dafcf1d2d693646fe83bc267956eed7b33ba Remove unnecessary default from a switch statement. Don't check for impossible enum element value, it's better to not have the default clause at all to get a warning from g++ if this enum ever changes later. And for now the presence of default results in a warning from Coverity about unreachable code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/image.cpp b/src/common/image.cpp index 2c61998e6d..66caa08174 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -2880,10 +2880,6 @@ wxImage::HSVValue wxImage::RGBtoHSV(const RGBValue& rgb) case BLUE: hue = 4.0 + (red - green) / deltaRGB; break; - - default: - wxFAIL_MSG(wxT("hue not specified")); - break; } hue /= 6.0;