File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1478,7 +1478,7 @@ AvailabilityRange TypeChecker::overApproximateAvailabilityAtLocation(
1478
1478
return availabilityAtLocation (loc, DC, MostRefined).getPlatformRange ();
1479
1479
}
1480
1480
1481
- bool TypeChecker:: isDeclarationUnavailable (
1481
+ static bool isDeclarationUnavailable (
1482
1482
const Decl *D, const DeclContext *referenceDC,
1483
1483
llvm::function_ref<AvailabilityRange()> getAvailabilityRange) {
1484
1484
ASTContext &Context = referenceDC->getASTContext ();
Original file line number Diff line number Diff line change @@ -1032,12 +1032,6 @@ diagnosticIfDeclCannotBePotentiallyUnavailable(const Decl *D);
1032
1032
// / is allowed.
1033
1033
std::optional<Diagnostic> diagnosticIfDeclCannotBeUnavailable (const Decl *D);
1034
1034
1035
- // / Same as \c checkDeclarationAvailability but doesn't give a reason for
1036
- // / unavailability.
1037
- bool isDeclarationUnavailable (
1038
- const Decl *D, const DeclContext *referenceDC,
1039
- llvm::function_ref<AvailabilityRange()> getAvailabilityRange);
1040
-
1041
1035
// / Checks whether a declaration should be considered unavailable when
1042
1036
// / referred to at the given location and, if so, returns the unmet required
1043
1037
// / version range. Returns None is the declaration is definitely available.
You can’t perform that action at this time.
0 commit comments