Skip to content

Commit 38f8fd0

Browse files
committed
Revert "Merge pull request swiftlang#6302 from CodaFi/pattern-ity"
This reverts commit ad21e5f, reversing changes made to dbc832b.
1 parent b8fa841 commit 38f8fd0

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

lib/Parse/ConditionResolver.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,6 @@ namespace {
282282
for (auto condition : configsToResolve) {
283283
R.resolveClausesAndInsertMembers(IDC, condition);
284284
}
285-
} else if (auto *PBD = dyn_cast<PatternBindingDecl>(D)) {
286-
PBD->walk(R.NDF);
287-
for (unsigned i = 0, e = PBD->getNumPatternEntries(); i != e; ++i) {
288-
if (auto e = PBD->getInit(i)) {
289-
PBD->setInit(i,
290-
e->walk(const_cast<ASTWalker&>(R.getClosureFinder())));
291-
}
292-
}
293285
}
294286
return true;
295287
}

test/Parse/ConditionalCompilation/can_import.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,3 @@ func performPerOS() -> Int {
9494
return performFoo(withX: value, andY: value)
9595
}
9696
#endif
97-
98-
let osName: String = {
99-
#if os(iOS)
100-
return "iOS"
101-
#elseif os(watchOS)
102-
return "watchOS"
103-
#elseif os(tvOS)
104-
return "tvOS"
105-
#elseif os(OSX)
106-
return "OS X"
107-
#elseif os(Linux)
108-
return "Linux"
109-
#else
110-
return "Unknown"
111-
#endif
112-
}()

0 commit comments

Comments
 (0)