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

@@ -767,9 +767,6 @@ deriveEquatable_eq(
eqDecl->setBodySynthesizer(bodySynthesizer);
// Compute the interface type.
(void)eqDecl->getInterfaceType();
eqDecl->copyFormalAccessFrom(derived.Nominal, /*sourceIsParentContext*/ true);
C.addSynthesizedDecl(eqDecl);
@@ -891,7 +888,6 @@ deriveHashable_hashInto(
hashDecl->setImplicit();
hashDecl->setBodySynthesizer(bodySynthesizer);
(void)hashDecl->getInterfaceType();
hashDecl->copyFormalAccessFrom(derived.Nominal);
C.addSynthesizedDecl(hashDecl);
@@ -1238,9 +1234,6 @@ static ValueDecl *deriveHashable_hashValue(DerivedConformance &derived) {
getterDecl->setBodySynthesizer(&deriveBodyHashable_hashValue);
getterDecl->setIsTransparent(false);
// Compute the interface type of hashValue().
(void)getterDecl->getInterfaceType();
getterDecl->copyFormalAccessFrom(derived.Nominal,
/*sourceIsParentContext*/ true);