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:
parent
60c0fd7c95
commit
b166958b86
@ -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"
|
||||
|
@ -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));
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user