Skip to content

Commit f96ef4a

Browse files
committed
Remove unused method
1 parent 4bd9e25 commit f96ef4a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

include/swift/AST/DeclContext.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -530,13 +530,6 @@ class alignas(1 << DeclContextAlignInBits) DeclContext
530530
LLVM_READONLY
531531
PackageUnit *getPackageContext(bool lookupIfNotCurrent = false) const;
532532

533-
/// True if resilience checks can be bypassed within a package.
534-
/// \p isForPackageDecl Bypassing only applies to package types
535-
/// (possibly also public types later) if opted-in, client and defining module
536-
/// are in the same package, and the defining module is a binary module.
537-
LLVM_READONLY
538-
bool bypassResilienceInPackage(bool isForPackageDecl) const;
539-
540533
/// Returns the module context that contains this context.
541534
LLVM_READONLY
542535
ModuleDecl *getParentModule() const;

lib/AST/DeclContext.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -300,17 +300,6 @@ PackageUnit *DeclContext::getPackageContext(bool lookupIfNotCurrent) const {
300300
return nullptr;
301301
}
302302

303-
bool DeclContext::bypassResilienceInPackage(bool isForPackageDecl) const {
304-
// Bypassing resilience checks only applies to package types (and possibly
305-
// public types in the same package in the future). Allowed only if opted-in
306-
// for bypassing optimization, client and defining module are in the same
307-
// package, and defining module is a binary module.
308-
return isForPackageDecl &&
309-
getASTContext().LangOpts.EnableBypassResilienceInPackage &&
310-
getParentModule()->inSamePackage(getASTContext().MainModule) &&
311-
!getParentModule()->isBuiltFromInterface();
312-
}
313-
314303
ModuleDecl *DeclContext::getParentModule() const {
315304
// If the current context is PackageUnit, return the module
316305
// decl context pointing to the current context. This check

0 commit comments

Comments
 (0)