Skip to content

Commit 20c5f53

Browse files
committed
Merge pull request #2891 from practicalswift/remove-commented-out-code
[gardening] Remove commented out code.
2 parents 1d666d1 + 2ef9526 commit 20c5f53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/IDE/Formatting.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,18 +550,19 @@ class FormatWalker : public SourceEntityWalker {
550550
// FIXME: We are going to revisit the behavior and the indentation we
551551
// want for dictionary/array literals.
552552
//
553-
/* SourceLoc LBracketLoc = AE->getLBracketLoc();
553+
#ifdef 0
554+
SourceLoc LBracketLoc = AE->getLBracketLoc();
554555
if (isTargetImmediateAfter(LBracketLoc) &&
555556
!sameLineWithTarget(LBracketLoc)) {
556557
FoundSibling = LBracketLoc;
557558
NeedExtraIndentation = true;
558-
}*/
559+
}
560+
#endif
559561
for (unsigned I = 0, N = AE->getNumElements(); I < N; I++) {
560562
addPair(AE->getElement(I)->getEndLoc(),
561563
FindAlignLoc(AE->getElement(I)->getStartLoc()), tok::comma);
562564
}
563565
}
564-
565566
// Case label items in a case statement are siblings.
566567
if (auto CS = dyn_cast_or_null<CaseStmt>(Node.dyn_cast<Stmt *>())) {
567568
for (const CaseLabelItem& Item : CS->getCaseLabelItems()) {

0 commit comments

Comments
 (0)