File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ struct LookupState {
70
70
IncludeDerivedRequirements(0 ), IncludeProtocolExtensionMembers(0 ) {}
71
71
72
72
public:
73
- LookupState (const LookupState &) = default;
74
-
75
73
static LookupState makeQualified () {
76
74
LookupState Result;
77
75
Result.IsQualified = 1 ;
Original file line number Diff line number Diff line change @@ -71,14 +71,12 @@ using namespace swift;
71
71
// / file.
72
72
static void checkInheritanceClause (
73
73
llvm::PointerUnion<const TypeDecl *, const ExtensionDecl *> declUnion) {
74
- const DeclContext *DC;
75
74
ArrayRef<InheritedEntry> inheritedClause;
76
75
const ExtensionDecl *ext = nullptr ;
77
76
const TypeDecl *typeDecl = nullptr ;
78
77
const Decl *decl;
79
78
if ((ext = declUnion.dyn_cast <const ExtensionDecl *>())) {
80
79
decl = ext;
81
- DC = ext;
82
80
83
81
inheritedClause = ext->getInherited ();
84
82
@@ -95,12 +93,6 @@ static void checkInheritanceClause(
95
93
} else {
96
94
typeDecl = declUnion.get <const TypeDecl *>();
97
95
decl = typeDecl;
98
- if (auto nominal = dyn_cast<NominalTypeDecl>(typeDecl)) {
99
- DC = nominal;
100
- } else {
101
- DC = typeDecl->getDeclContext ();
102
- }
103
-
104
96
inheritedClause = typeDecl->getInherited ();
105
97
}
106
98
You can’t perform that action at this time.
0 commit comments