mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "[omit-needless-words] Fix a bug found by -Wunused-result"
This commit is contained in:
@@ -669,7 +669,7 @@ static StringRef omitNeedlessWords(StringRef name,
|
||||
NameRole::Partial, allPropertyNames, scratch);
|
||||
if (shortenedNameWord == newShortenedNameWord &&
|
||||
shortenedNameWord.back() == 'e') {
|
||||
shortenedNameWord = shortenedNameWord.drop_back();
|
||||
shortenedNameWord.drop_back();
|
||||
newShortenedNameWord =
|
||||
omitNeedlessWords(shortenedNameWord, typeName.CollectionElement,
|
||||
NameRole::Partial, allPropertyNames, scratch);
|
||||
|
||||
Reference in New Issue
Block a user