Sema: Remove addExpectedOpaqueAccessorsToStorage()

This commit is contained in:
Slava Pestov
2019-07-30 22:28:41 -04:00
parent 6c5ecb5fc9
commit a4bb3101ea
6 changed files with 5 additions and 27 deletions

View File

@@ -1293,13 +1293,6 @@ SynthesizeAccessorRequest::evaluate(Evaluator &evaluator,
}
}
void swift::addExpectedOpaqueAccessorsToStorage(AbstractStorageDecl *storage) {
storage->visitExpectedOpaqueAccessors([&](AccessorKind kind) {
// Force synthesis if necessary.
(void) storage->getSynthesizedAccessor(kind);
});
}
/// Synthesize the body of a setter which just delegates to a mutable
/// addressor.
static std::pair<BraceStmt *, bool>
@@ -1717,7 +1710,6 @@ static VarDecl *synthesizePropertyWrapperStorageWrapperProperty(
property->setImplInfo(StorageImplInfo::getMutableComputed());
else
property->setImplInfo(StorageImplInfo::getImmutableComputed());
addExpectedOpaqueAccessorsToStorage(property);
var->getAttrs().add(
new (ctx) ProjectedValuePropertyAttr(name, SourceLoc(), SourceRange(),