Skip to content

Commit 1262662

Browse files
committed
AST: Remove AssociatedTypeDecl::hasInverseMarking()
1 parent aa4a1b2 commit 1262662

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

include/swift/AST/Decl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3919,10 +3919,6 @@ class AssociatedTypeDecl : public TypeDecl {
39193919
TypeDecl::getOverriddenDecl());
39203920
}
39213921

3922-
/// Determine whether this type has ~<target>` stated as
3923-
/// one of its inherited types.
3924-
InverseMarking::Mark hasInverseMarking(InvertibleProtocolKind target) const;
3925-
39263922
/// Retrieve the set of associated types overridden by this associated
39273923
/// type.
39283924
llvm::TinyPtrVector<AssociatedTypeDecl *> getOverriddenDecls() const;

lib/AST/Decl.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6656,16 +6656,6 @@ findInverseInInheritance(InheritedTypes inherited,
66566656
return inverse;
66576657
}
66586658

6659-
InverseMarking::Mark
6660-
AssociatedTypeDecl::hasInverseMarking(InvertibleProtocolKind target) const {
6661-
auto &ctx = getASTContext();
6662-
6663-
if (!ctx.LangOpts.hasFeature(Feature::NoncopyableGenerics))
6664-
return InverseMarking::Mark();
6665-
6666-
return findInverseInInheritance(getInherited(), target);
6667-
}
6668-
66696659
InverseMarking::Mark
66706660
NominalTypeDecl::hasInverseMarking(InvertibleProtocolKind target) const {
66716661
switch (target) {

0 commit comments

Comments
 (0)