Skip to content

Commit cade15b

Browse files
committed
cleanup, un-used commented out code
1 parent b60cbd7 commit cade15b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/Sema/TypeCheckDistributed.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -696,19 +696,6 @@ void TypeChecker::checkDistributedActor(SourceFile *SF, NominalTypeDecl *nominal
696696
// If applicable, this will create the default 'init(transport:)' initializer
697697
(void)nominal->getDefaultInitializer();
698698

699-
// We check decls for ambiguity more strictly than normal nominal types,
700-
// because we want to record distributed accessors the same if function they
701-
// point at (in a remote process) is async or not, as that has no effect on
702-
// a caller from a different process, so we want to make the remoteCall target
703-
// identifiers, less fragile against such refactorings.
704-
//
705-
// To achieve this, we ban overloads on just "effects" of functions,
706-
// which are useful in local settings, but really should not be relied
707-
// on as differenciators in remote calls - the call will always be "async"
708-
// since it will go through a thunk, and then be asynchronously transferred
709-
// to the called process.
710-
// llvm::SmallDenseSet<DeclName, 2> diagnosedAmbiguity;
711-
712699
for (auto member : nominal->getMembers()) {
713700
// --- Ensure 'distributed func' all thunks
714701
if (auto *var = dyn_cast<VarDecl>(member)) {

0 commit comments

Comments
 (0)