qt: Remove dead code

* lang/qt/src/qgpgmeencryptjob.cpp,
lang/qt/src/qgpgmesignencryptjob.cpp, lang/qt/src/qgpgmesignjob.cpp:
Remove long commented out showErrorDialog member function definitions.
--

Displaying error messages is delegated to the job users since ages.
This commit is contained in:
Ingo Klöcker 2023-12-20 17:33:23 +01:00
parent 60c0fd7c95
commit b166958b86
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9
3 changed files with 0 additions and 30 deletions

View File

@ -213,12 +213,4 @@ void QGpgMEEncryptJob::resultHook(const result_type &tuple)
mResult = std::get<0>(tuple);
}
#if 0
void QGpgMEEncryptJob::showErrorDialog(QWidget *parent, const QString &caption) const
{
if (mResult.error() && !mResult.error().isCanceled()) {
MessageBox::error(parent, mResult, this, caption);
}
}
#endif
#include "qgpgmeencryptjob.moc"

View File

@ -201,19 +201,6 @@ std::pair<SigningResult, EncryptionResult> QGpgMESignEncryptJob::exec(const std:
return exec(signers, recipients, plainText, alwaysTrust ? Context::AlwaysTrust : Context::None, cipherText);
}
#if 0
TODO port?
void QGpgMESignEncryptJob::showErrorDialog(QWidget *parent, const QString &caption) const
{
if ((mResult.first.error() && !mResult.first.error().isCanceled()) ||
(mResult.second.error() && !mResult.second.error().isCanceled())) {
MessageBox::error(parent, mResult.first, mResult.second, this, caption);
}
}
#endif
void QGpgMESignEncryptJob::resultHook(const result_type &tuple)
{
mResult = std::make_pair(std::get<0>(tuple), std::get<1>(tuple));

View File

@ -161,13 +161,4 @@ void QGpgMESignJob::resultHook(const result_type &tuple)
mResult = std::get<0>(tuple);
}
#if 0
TODO port
void QGpgMESignJob::showErrorDialog(QWidget *parent, const QString &caption) const
{
if (mResult.error() && !mResult.error().isCanceled()) {
MessageBox::error(parent, mResult, this, caption);
}
}
#endif
#include "qgpgmesignjob.moc"