summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Masoud Abdol <[email protected]>2023-04-05 11:26:04 +0200
committerAmir Masoud Abdol <[email protected]>2023-04-05 19:36:55 +0200
commitb408bae864d46423db25a60e9be7dc31c722e2b1 (patch)
tree71047a09bd756e17e6c83d2170bbab62b8713d0e
parent9476283edb5c4afcc6fb3430b7aa66579aba0c5f (diff)
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 <[email protected]>
-rw-r--r--qmake/library/proitems.cpp5
1 files changed, 0 insertions, 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;