Revert "[omit-needless-words] Fix a bug found by -Wunused-result"

This commit is contained in:
Ben Langmuir
2016-09-14 14:27:32 -07:00
committed by GitHub
parent 19419757e4
commit 04107ed8b2
3 changed files with 1 additions and 6 deletions

View File

@@ -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);