File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -2738,37 +2738,6 @@ class Verifier : public ASTWalker {
2738
2738
verifyCheckedBase (nominal);
2739
2739
}
2740
2740
2741
- void verifyCheckedAlways (GenericTypeParamDecl *GTPD) {
2742
- PrettyStackTraceDecl debugStack (" verifying GenericTypeParamDecl" , GTPD);
2743
-
2744
- const DeclContext *DC = GTPD->getDeclContext ();
2745
- if (!GTPD->getDeclContext ()->isInnermostContextGeneric ()) {
2746
- Out << " DeclContext of GenericTypeParamDecl does not have "
2747
- " generic params" ;
2748
- abort ();
2749
- }
2750
-
2751
- GenericParamList *paramList =
2752
- static_cast <const GenericContext *>(DC)->getGenericParams ();
2753
- if (!paramList) {
2754
- Out << " DeclContext of GenericTypeParamDecl does not have "
2755
- " generic params" ;
2756
- abort ();
2757
- }
2758
-
2759
- if (paramList->size () <= GTPD->getIndex () ||
2760
- paramList->getParams ()[GTPD->getIndex ()] != GTPD) {
2761
- Out << " GenericTypeParamDecl has incorrect index" ;
2762
- abort ();
2763
- }
2764
- if (paramList->getDepth () != GTPD->getDepth ()) {
2765
- Out << " GenericTypeParamDecl has incorrect depth" ;
2766
- abort ();
2767
- }
2768
-
2769
- verifyCheckedBase (GTPD);
2770
- }
2771
-
2772
2741
void verifyChecked (ExtensionDecl *ext) {
2773
2742
// Make sure that the protocol conformances are complete.
2774
2743
for (auto conformance : ext->getLocalConformances ()) {
You can’t perform that action at this time.
0 commit comments