@@ -1504,33 +1504,6 @@ DynamicSubscriptExpr::create(ASTContext &ctx, Expr *base, Expr *index,
1504
1504
hasTrailingClosure, decl, implicit);
1505
1505
}
1506
1506
1507
- DynamicSubscriptExpr *
1508
- DynamicSubscriptExpr::create (ASTContext &ctx, Expr *base, SourceLoc lSquareLoc,
1509
- ArrayRef<Expr *> indexArgs,
1510
- ArrayRef<Identifier> indexArgLabels,
1511
- ArrayRef<SourceLoc> indexArgLabelLocs,
1512
- SourceLoc rSquareLoc,
1513
- Expr *trailingClosure,
1514
- ConcreteDeclRef decl,
1515
- bool implicit) {
1516
- SmallVector<Identifier, 4 > indexArgLabelsScratch;
1517
- SmallVector<SourceLoc, 4 > indexArgLabelLocsScratch;
1518
- Expr *index = packSingleArgument (ctx, lSquareLoc, indexArgs, indexArgLabels,
1519
- indexArgLabelLocs, rSquareLoc,
1520
- trailingClosure, implicit,
1521
- indexArgLabelsScratch,
1522
- indexArgLabelLocsScratch);
1523
-
1524
- size_t size = totalSizeToAlloc (indexArgLabels, indexArgLabelLocs,
1525
- trailingClosure != nullptr );
1526
-
1527
- void *memory = ctx.Allocate (size, alignof (DynamicSubscriptExpr));
1528
- return new (memory) DynamicSubscriptExpr (base, index, indexArgLabels,
1529
- indexArgLabelLocs,
1530
- trailingClosure != nullptr ,
1531
- decl, implicit);
1532
- }
1533
-
1534
1507
UnresolvedMemberExpr::UnresolvedMemberExpr (SourceLoc dotLoc,
1535
1508
DeclNameLoc nameLoc,
1536
1509
DeclNameRef name, Expr *argument,
0 commit comments