From 0b0fb93e75244d1e41a8555c45488596e6fc11a1 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 13 May 2019 12:33:03 +0200 Subject: [PATCH] [libcalamares] Remove redundant default: in case - the switch handles all values of the enum and the compiler should be smart enough to know that (therefore default isn't needed, nor the return afterwards). --- src/libcalamares/geoip/Handler.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libcalamares/geoip/Handler.cpp b/src/libcalamares/geoip/Handler.cpp index 4add3eb13..60404c2d6 100644 --- a/src/libcalamares/geoip/Handler.cpp +++ b/src/libcalamares/geoip/Handler.cpp @@ -112,8 +112,6 @@ create_interface( Handler::Type t, const QString& selector ) #else return nullptr; #endif - default: // there are no others - return nullptr; } }