summaryrefslogtreecommitdiff
path: root/src/linguist
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-12-09 10:54:56 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2022-12-16 17:29:10 +0000
commita09e4d78d071cf5f8833d89d19856d9c4a851e20 (patch)
treecf39858598ef5d5a3485ce25fb91a1106d93ef97 /src/linguist
parent5da12fa5e6702d98c6ffb72fdbf9e2ce7934fe13 (diff)
downloadqttools-a09e4d78d071cf5f8833d89d19856d9c4a851e20.tar.gz
Remove unused variables
Fixes Clang -Wunused-but-set-variable warning. Change-Id: Ieef44cd2ff6a2d5e56c3eee61ed89e8d79d0a200 Pick-to: 6.5 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Diffstat (limited to 'src/linguist')
-rw-r--r--src/linguist/lupdate/main.cpp2
-rw-r--r--src/linguist/shared/proitems.cpp5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/linguist/lupdate/main.cpp b/src/linguist/lupdate/main.cpp
index fe35e2f6a..e3d83b7d2 100644
--- a/src/linguist/lupdate/main.cpp
+++ b/src/linguist/lupdate/main.cpp
@@ -729,7 +729,6 @@ int main(int argc, char **argv)
UpdateOptions options =
Verbose | // verbose is on by default starting with Qt 4.2
HeuristicSameText | HeuristicSimilarText | HeuristicNumber;
- int proDebug = 0;
int numFiles = 0;
bool metTsFlag = false;
bool metXTsFlag = false;
@@ -759,7 +758,6 @@ int main(int argc, char **argv)
options &= ~Verbose;
continue;
} else if (arg == QLatin1String("-pro-debug")) {
- proDebug++;
continue;
} else if (arg == QLatin1String("-project")) {
++i;
diff --git a/src/linguist/shared/proitems.cpp b/src/linguist/shared/proitems.cpp
index 56d2e96d1..2edd40a35 100644
--- a/src/linguist/shared/proitems.cpp
+++ b/src/linguist/shared/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;