Skip to content

Commit fc00fc6

Browse files
committed
---
yaml --- r: 349576 b: refs/heads/master-next c: f95798e h: refs/heads/master
1 parent 04287de commit fc00fc6

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 7bca7291e2a58d90b6ae9f082e3e58c976550e97
3+
refs/heads/master-next: f95798ee2021adb848a26ff8d04c7111ed040aef
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/Sema/TypeCheckStorage.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -412,14 +412,6 @@ static void addMemberToContextIfNeeded(Decl *D, DeclContext *DC,
412412
}
413413
}
414414

415-
static ParamDecl *getParamDeclAtIndex(FuncDecl *fn, unsigned index) {
416-
return fn->getParameters()->get(index);
417-
}
418-
419-
static VarDecl *getFirstParamDecl(FuncDecl *fn) {
420-
return getParamDeclAtIndex(fn, 0);
421-
};
422-
423415
/// Build a parameter list which can forward the formal index parameters of a
424416
/// declaration.
425417
///
@@ -1307,7 +1299,7 @@ synthesizeTrivialSetterBodyWithStorage(AccessorDecl *setter,
13071299
ASTContext &ctx) {
13081300
SourceLoc loc = setter->getStorage()->getLoc();
13091301

1310-
VarDecl *valueParamDecl = getFirstParamDecl(setter);
1302+
VarDecl *valueParamDecl = setter->getParameters()->get(0);
13111303

13121304
auto *valueDRE =
13131305
new (ctx) DeclRefExpr(valueParamDecl, DeclNameLoc(), /*IsImplicit=*/true);

0 commit comments

Comments
 (0)