Skip to content

Commit 69b3712

Browse files
authored
Merge pull request #7677 from bitjammer/rdar-30404063-pcr
Post-commit review: Remove sneaky file, don't use callPrintStructurePost
2 parents 697fd96 + 202fdf6 commit 69b3712

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

include/swift/AST/ASTPrinter.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,6 @@ class ASTPrinter {
263263
printStructurePre(Kind, D);
264264
}
265265

266-
/// Make a callback to printStructurePost(), performing any necessary
267-
/// bookkeeping.
268-
void callPrintStructurePost(PrintStructureKind Kind,
269-
const Decl *D = nullptr) {
270-
forceNewlines();
271-
printStructurePost(Kind, D);
272-
}
273-
274266
/// To sanitize a malformed utf8 string to a well-formed one.
275267
static std::string sanitizeUtf8(StringRef Text);
276268
static ValueDecl* findConformancesWithDocComment(ValueDecl *VD);

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ void PrintAST::printSingleDepthOfGenericSignature(
13551355
Requirement substReq(req.getKind(), first, req.getLayoutConstraint());
13561356
printRequirement(substReq);
13571357
}
1358-
Printer.callPrintStructurePost(PrintStructureKind::GenericRequirement);
1358+
Printer.printStructurePost(PrintStructureKind::GenericRequirement);
13591359
}
13601360
}
13611361

test/Syntax/RoundTrip/fallthrough.swift

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)