mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user