aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-22 21:18:35 +0200
committersaturneric <[email protected]>2026-09-22 21:18:35 +0200
commit5c19e814f2cf8b142a4f55aef44f6026691d5efe (patch)
tree70e3d8f686fb662a2524ef913297aa449db2a3d5
parentrefactor(email): migrate to context-based SDK (diff)
downloadmodules-5c19e814f2cf8b142a4f55aef44f6026691d5efe.tar.gz
modules-5c19e814f2cf8b142a4f55aef44f6026691d5efe.zip
refactor(email): remove unused temporary variables
- delete redundant null pointer declarations from email operations - preserve existing structured info handling and error reporting
-rw-r--r--src/m_email/EMailModule.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/m_email/EMailModule.cpp b/src/m_email/EMailModule.cpp
index 309fe8e..85af61d 100644
--- a/src/m_email/EMailModule.cpp
+++ b/src/m_email/EMailModule.cpp
@@ -1026,9 +1026,6 @@ auto DoDecryptEMLData(int channel, const QByteArray& data, const GFEvent& event,
return ret;
}
- const char* tmp = nullptr;
- const char* cards_tmp = nullptr;
- const char* info_tmp = nullptr;
// The Info variant, because the recipient cross-check needs the structured
// recipients rather than the rendered report. The capsule is consumed by
// whichever analyse call touches it, so everything has to come from this one.
@@ -1157,9 +1154,6 @@ auto DoSignEMLData(int channel, const QString& sign_key,
}
QByteArray info_json;
- const char* tmp = nullptr;
- const char* cards_tmp = nullptr;
- const char* info_tmp = nullptr;
// The Info variant, not the plain one: the structured description
// and details are what let a FAILURE explain itself, and without
// them the board can only fall back to "<operation> failed."
@@ -1213,9 +1207,6 @@ auto DoSignPlainText(int channel, const QString& sign_key,
}
QByteArray info_json;
- const char* tmp = nullptr;
- const char* cards_tmp = nullptr;
- const char* info_tmp = nullptr;
// The Info variant, not the plain one: the structured description
// and details are what let a FAILURE explain itself, and without
// them the board can only fall back to "<operation> failed."
@@ -1335,9 +1326,6 @@ auto DoEncryptEMLData(int channel, const QStringList& encrypt_keys,
}
QByteArray info_json;
- const char* tmp = nullptr;
- const char* cards_tmp = nullptr;
- const char* info_tmp = nullptr;
// The Info variant, not the plain one: the structured description
// and details are what let a FAILURE explain itself, and without
// them the board can only fall back to "<operation> failed."
@@ -1395,9 +1383,6 @@ auto DoEncryptPlainText(int channel, const QStringList& encrypt_keys,
}
QByteArray info_json;
- const char* tmp = nullptr;
- const char* cards_tmp = nullptr;
- const char* info_tmp = nullptr;
// The Info variant, not the plain one: the structured description
// and details are what let a FAILURE explain itself, and without
// them the board can only fall back to "<operation> failed."