omitNeedlessWords: Remove dead code from base name splitting

"and" is not a preposition, so we'll never get a false preposition
match for "and return".
This commit is contained in:
Jordan Rose
2019-10-16 10:14:01 -07:00
parent 6db1e020c2
commit 2465f5c2c3

View File

@@ -978,10 +978,6 @@ static bool wordConflictsAfterPreposition(StringRef word,
return true;
}
if (camel_case::sameWordIgnoreFirstCase(preposition, "and") &&
camel_case::sameWordIgnoreFirstCase(word, "return"))
return true;
return false;
}