[gardening] Remove redundant logic

This commit is contained in:
practicalswift
2017-04-11 23:04:55 +02:00
parent 3623d408ca
commit 5e255e07d7
23 changed files with 39 additions and 118 deletions

View File

@@ -49,9 +49,7 @@ static bool isOverloadable(const ValueDecl *VD) {
static bool isValidOverload(CanTypeSet &overloads, const ValueDecl *VD) {
if (!isOverloadable(VD))
return overloads.empty();
if (overloads.count(VD->getInterfaceType()->getCanonicalType()))
return false;
return true;
return !overloads.count(VD->getInterfaceType()->getCanonicalType());
}
static bool isValidOverload(NamedCanTypeSet &overloads, const ValueDecl *VD) {