mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Remove some unnecessary (void) getInterfaceType() calls
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user