projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ab892
)
Remove useless default clause in switch
author
Alvaro Herrera
Mon, 23 Apr 2018 14:46:30 +0000
(11:46 -0300)
committer
Alvaro Herrera
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/partitioning/partprune.c
b/src/backend/partitioning/partprune.c
index e1b5825f00c49bf75d330c259f31996b735d88c6..f8844ef2eb66ba80a42767af7aa5c663348053c7 100644
(file)
--- a/
src/backend/partitioning/partprune.c
+++ b/
src/backend/partitioning/partprune.c
@@
-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. */