diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-05 11:26:04 +0200 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-04-05 19:36:55 +0200 |
commit | b408bae864d46423db25a60e9be7dc31c722e2b1 (patch) | |
tree | 71047a09bd756e17e6c83d2170bbab62b8713d0e /qmake | |
parent | 9476283edb5c4afcc6fb3430b7aa66579aba0c5f (diff) | |
download | qtbase-b408bae864d46423db25a60e9be7dc31c722e2b1.tar.gz |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/library/proitems.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/qmake/library/proitems.cpp b/qmake/library/proitems.cpp index 56d2e96d1c..2edd40a35c 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; |