From b166958b868c551fe0b4e4ac33e6e34ddf2f7ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 20 Dec 2023 17:33:23 +0100 Subject: 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. --- lang/qt/src/qgpgmesignencryptjob.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lang/qt/src/qgpgmesignencryptjob.cpp') diff --git a/lang/qt/src/qgpgmesignencryptjob.cpp b/lang/qt/src/qgpgmesignencryptjob.cpp index 55513c9f..0f5642a9 100644 --- a/lang/qt/src/qgpgmesignencryptjob.cpp +++ b/lang/qt/src/qgpgmesignencryptjob.cpp @@ -201,19 +201,6 @@ std::pair 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)); -- cgit v1.2.3