Skip to content

Commit 1224e90

Browse files
authored
Merge pull request #26926 from CodaFi/parameterized-nonsense
2 parents da8ef33 + e5fa534 commit 1224e90

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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)