@@ -2742,25 +2742,6 @@ class ValueDecl : public Decl {
2742
2742
// / \c \@usableFromInline, \c \@inlinalbe, and \c \@_alwaysEmitIntoClient
2743
2743
bool isUsableFromInline () const ;
2744
2744
2745
- // / Returns \c true if this value decl needs a special case handling for an
2746
- // / interface file.
2747
- // /
2748
- // / One such case is a reference of an inlinable decl with a `package` access level
2749
- // / in an interface file as follows: Package decls are only printed in interface files if
2750
- // / they are inlinable (as defined in \c isUsableFromInline). They could be
2751
- // / referenced by a module outside of its defining module that belong to the same
2752
- // / package determined by the `package-name` flag. However, the flag is only in
2753
- // / .swiftmodule and .private.swiftinterface, thus type checking references of inlinable
2754
- // / package symbols in public interfaces fails due to the missing flag.
2755
- // / Instead of adding the package-name flag to the public interfaces, which
2756
- // / could raise a security concern, we grant access to such cases.
2757
- // /
2758
- // / \sa useDC The use site where this value decl is referenced.
2759
- // / \sa useAcl The access level of its use site.
2760
- // / \sa declScope The access scope of this decl site.
2761
- bool skipAccessCheckIfInterface (const DeclContext *useDC, AccessLevel useAcl,
2762
- AccessScope declScope) const ;
2763
-
2764
2745
// / Returns \c true if this declaration is *not* intended to be used directly
2765
2746
// / by application developers despite the visibility.
2766
2747
bool shouldHideFromEditor () const ;
0 commit comments