[gardening] Remove never-read bool anyRemoved.

This commit is contained in:
practicalswift
2016-12-08 13:31:53 +01:00
parent 7fba953464
commit 14c4f3c46f

View File

@@ -67,15 +67,11 @@ namespace {
}) == Result.end())
return;
bool anyRemoved = false;
// Remove any overridden declarations from the found-declarations set.
if (removeOverriddenDecls(FoundDecls))
anyRemoved = true;
removeOverriddenDecls(FoundDecls);
// Remove any shadowed declarations from the found-declarations set.
if (removeShadowedDecls(FoundDecls, DC->getParentModule(), &TC))
anyRemoved = true;
removeShadowedDecls(FoundDecls, DC->getParentModule(), &TC);
// Filter out those results that have been removed from the
// found-declarations set.