From b408bae864d46423db25a60e9be7dc31c722e2b1 Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Wed, 5 Apr 2023 11:26:04 +0200 Subject: [PATCH] Remove unused code in qmake, triggering -Wunused-but-set-variable This seems to be a leftover from a refactoring done a few years ago. Pick-to: 6.5 Change-Id: I2bd2700aca3a5a6104886eaa0957226786ad615a Reviewed-by: Alexandru Croitor --- qmake/library/proitems.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qmake/library/proitems.cpp b/qmake/library/proitems.cpp index 56d2e96d1c6..2edd40a35c9 100644 --- a/qmake/library/proitems.cpp +++ b/qmake/library/proitems.cpp @@ -223,14 +223,9 @@ ProString &ProString::append(const ProStringList &other, bool *pending, bool ski if (!m_length && sz == startIdx + 1) { *this = other.at(startIdx); } else { - int totalLength = sz - startIdx; - for (int i = startIdx; i < sz; ++i) - totalLength += other.at(i).size(); bool putSpace = false; if (pending && !*pending && m_length) putSpace = true; - else - totalLength--; m_string = toQString(); m_offset = 0;