Sema: Remove some unnecessary (void) getInterfaceType() calls

This commit is contained in:
Slava Pestov
2019-11-01 22:01:19 -04:00
parent 3b7a0b24f5
commit ae8c85ef80
14 changed files with 2 additions and 102 deletions

View File

@@ -738,8 +738,6 @@ static FuncDecl *deriveEncodable_encode(DerivedConformance &derived) {
encodeDecl->getAttrs().add(attr);
}
(void)encodeDecl->getInterfaceType();
encodeDecl->copyFormalAccessFrom(derived.Nominal,
/*sourceIsParentContext*/ true);
@@ -1018,8 +1016,6 @@ static ValueDecl *deriveDecodable_init(DerivedConformance &derived) {
initDecl->getAttrs().add(reqAttr);
}
(void)initDecl->getInterfaceType();
initDecl->copyFormalAccessFrom(derived.Nominal,
/*sourceIsParentContext*/ true);