Remove unused 'Body' parameter in FuncExpr::create()

'nullptr' is only ever passed as the argument value.


Swift SVN r5966
This commit is contained in:
Dmitri Hrybenko
2013-07-02 23:12:15 +00:00
parent 2311e4ec16
commit f428683842
6 changed files with 11 additions and 18 deletions

View File

@@ -511,7 +511,7 @@ Decl *ModuleFile::getDecl(DeclID DID, DeclDeserializationOptions opts) {
auto body = FuncExpr::create(ctx, SourceLoc(),
argPatterns, bodyPatterns,
TypeLoc::withoutLoc(signature->getResult()),
/*body=*/nullptr, DC);
DC);
fn->setBody(body);
fn->setOverriddenDecl(cast_or_null<FuncDecl>(getDecl(overriddenID)));