mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Remove addExpectedOpaqueAccessorsToStorage()
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user