Skip to content

Commit 1a4fe77

Browse files
committed
Remove some dead code from PrintAST
1 parent a826da5 commit 1a4fe77

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,6 @@ class PrintAST : public ASTVisitor<PrintAST> {
801801
Decl *attachingTo);
802802
void printWhereClauseFromRequirementSignature(ProtocolDecl *proto,
803803
Decl *attachingTo);
804-
void printTrailingWhereClause(TrailingWhereClause *whereClause);
805804

806805
void printGenericSignature(GenericSignature genericSig,
807806
unsigned flags);
@@ -1359,18 +1358,6 @@ void PrintAST::printWhereClauseFromRequirementSignature(ProtocolDecl *proto,
13591358
});
13601359
}
13611360

1362-
void PrintAST::printTrailingWhereClause(TrailingWhereClause *whereClause) {
1363-
Printer << " " << tok::kw_where << " ";
1364-
interleave(
1365-
whereClause->getRequirements(),
1366-
[&](const RequirementRepr &req) {
1367-
Printer.callPrintStructurePre(PrintStructureKind::GenericRequirement);
1368-
req.print(Printer);
1369-
Printer.printStructurePost(PrintStructureKind::GenericRequirement);
1370-
},
1371-
[&] { Printer << ", "; });
1372-
}
1373-
13741361
/// A helper function to return the depth of a requirement.
13751362
static unsigned getDepthOfRequirement(const Requirement &req) {
13761363
switch (req.getKind()) {

0 commit comments

Comments
 (0)