aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-12 06:55:22 +0200
committerMontel Laurent <[email protected]>2017-10-12 06:55:22 +0200
commit43551df11b2b1c9fab5548fa913b9e98a5faf6db (patch)
treed9818861f06d27c041f6fd845ddae38b55219868
parent906b94945cdd587ae9aea29a0fb6b037547b7b9c (diff)
Remove unused variables
-rw-r--r--autotests/contenttest.cpp4
-rw-r--r--src/kmime_codecs.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/autotests/contenttest.cpp b/autotests/contenttest.cpp
index ddc0366..b0f7b23 100644
--- a/autotests/contenttest.cpp
+++ b/autotests/contenttest.cpp
@@ -263,7 +263,7 @@ void ContentTest::testEncodedContent()
msg->parse();
// Test that multiple calls do not corrupt anything.
- QByteArray encc = msg->encodedContent();
+ //QByteArray encc = msg->encodedContent();
//qDebug() << "original data" << data;
//qDebug() << "encodedContent" << encc;
QCOMPARE(msg->encodedContent(), data);
@@ -486,7 +486,7 @@ void ContentTest::testMultipartMixed()
QCOMPARE(c->body(), part2);
msg->assemble();
- QByteArray encc = msg->encodedContent();
+ //QByteArray encc = msg->encodedContent();
//qDebug() << "expected assembled content" << assembled;
//qDebug() << "actual encoded content" << encc;
QCOMPARE(msg->encodedContent(), assembled);
diff --git a/src/kmime_codecs.cpp b/src/kmime_codecs.cpp
index cbd18aa..b05bc1f 100644
--- a/src/kmime_codecs.cpp
+++ b/src/kmime_codecs.cpp
@@ -283,7 +283,6 @@ QString decodeRFC2231String(const QByteArray &str, QByteArray &usedCS, const QBy
p++;
}
qDebug() << "Got pre-decoded:" << st;
- QString result;
const QTextCodec *charsetcodec = KCharsets::charsets()->codecForName(QString::fromLatin1(charset));
if (!charsetcodec || forceCS) {
charsetcodec = KCharsets::charsets()->codecForName(QString::fromLatin1(defaultCS));