Skip to content

Commit 99ffedf

Browse files
committed
[NFC] Drop Unused Owning DeclContext Computation
1 parent e5f706c commit 99ffedf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,10 +3288,6 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
32883288
binding->getNumPatternEntries(),
32893289
initContextIDs);
32903290

3291-
DeclContext *owningDC = nullptr;
3292-
if (binding->getDeclContext()->isTypeContext())
3293-
owningDC = binding->getDeclContext();
3294-
32953291
for (auto entryIdx : range(binding->getNumPatternEntries())) {
32963292
writePattern(binding->getPattern(entryIdx));
32973293
// Ignore initializer; external clients don't need to know about it.

0 commit comments

Comments
 (0)