Skip to content

Commit e83b700

Browse files
committed
Sema: Remove unused function
1 parent b471cd3 commit e83b700

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lib/Sema/LookupVisibleDecls.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ static void collectVisibleMemberDecls(const DeclContext *CurrDC, LookupState LS,
238238
}
239239
}
240240

241-
static void
242-
synthesizePropertyWrapperVariables(IterableDeclContext *IDC);
243-
244241
/// Lookup members in extensions of \p LookupType, using \p BaseType as the
245242
/// underlying type when checking any constraints on the extensions.
246243
static void doGlobalExtensionLookup(Type BaseType,
@@ -568,22 +565,6 @@ static void
568565
getReasonForSuper(Reason), Sig, Visited);
569566
}
570567

571-
// Generate '$' and '_' prefixed variables for members that have attached property
572-
// wrappers.
573-
static void
574-
synthesizePropertyWrapperVariables(IterableDeclContext *IDC) {
575-
auto SF = IDC->getAsGenericContext()->getParentSourceFile();
576-
if (!SF || SF->Kind == SourceFileKind::Interface)
577-
return;
578-
579-
for (auto Member : IDC->getMembers())
580-
if (auto var = dyn_cast<VarDecl>(Member))
581-
if (var->hasAttachedPropertyWrapper()) {
582-
(void)var->getPropertyWrapperAuxiliaryVariables();
583-
(void)var->getPropertyWrapperInitializerInfo();
584-
}
585-
}
586-
587568
static void lookupVisibleMemberDeclsImpl(
588569
Type BaseTy, VisibleDeclConsumer &Consumer, const DeclContext *CurrDC,
589570
LookupState LS, DeclVisibilityKind Reason, GenericSignature Sig,

0 commit comments

Comments
 (0)