]> granicus.if.org Git - postgresql/commitdiff
Remove useless default clause in switch
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 23 Apr 2018 14:46:30 +0000 (11:46 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 23 Apr 2018 15:11:41 +0000 (12:11 -0300)
The switch covers all values of the enum driver variable, so having a
default: clause is useless, even if it's only to do Assert(false).

src/backend/partitioning/partprune.c

index e1b5825f00c49bf75d330c259f31996b735d88c6..f8844ef2eb66ba80a42767af7aa5c663348053c7 100644 (file)
@@ -836,10 +836,6 @@ gen_partprune_steps_internal(GeneratePruningStepsContext *context,
                                case PARTCLAUSE_UNSUPPORTED:
                                        /* This clause cannot be used for pruning. */
                                        break;
-
-                               default:
-                                       Assert(false);
-                                       break;
                        }
 
                        /* done; go check the next clause. */