Skip to content

Commit

Permalink
Remove unused code in qmake, triggering -Wunused-but-set-variable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
amirmasoudabdol committed Apr 5, 2023
1 parent 9476283 commit b408bae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions qmake/library/proitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b408bae

Please sign in to comment.