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>
This commit is contained in:
parent
9476283edb
commit
b408bae864
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user