Content-Length: 259126 | pFad | http://github.com/postgrespro/postgres_cluster/commit/dfce1f9e4eef3adcccbb23670fa1c432eebb0b90

1B Remove useless default clause in switch · postgrespro/postgres_cluster@dfce1f9 · GitHub
Skip to content

Commit dfce1f9

Browse files
committed
Remove useless default clause in switch
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).
1 parent a5ab892 commit dfce1f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/partitioning/partprune.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,6 @@ gen_partprune_steps_internal(GeneratePruningStepsContext *context,
836836
case PARTCLAUSE_UNSUPPORTED:
837837
/* This clause cannot be used for pruning. */
838838
break;
839-
840-
default:
841-
Assert(false);
842-
break;
843839
}
844840

845841
/* done; go check the next clause. */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/dfce1f9e4eef3adcccbb23670fa1c432eebb0b90

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy