From 4938c24a466bf05e707d3e6cbf759705adc7e8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 11 Oct 2022 10:19:37 +0200 Subject: [PATCH] qt: Remove obsolete code. * lang/qt/src/qgpgmenewcryptoconfig.cpp (struct Select1St): Remove. -- This struct was never used in this implementation of the crypto config classes and it causes a build error with Qt 6 where QPair is an alias for std::pair. --- lang/qt/src/qgpgmenewcryptoconfig.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lang/qt/src/qgpgmenewcryptoconfig.cpp b/lang/qt/src/qgpgmenewcryptoconfig.cpp index 32bf888c..57d02cc7 100644 --- a/lang/qt/src/qgpgmenewcryptoconfig.cpp +++ b/lang/qt/src/qgpgmenewcryptoconfig.cpp @@ -59,22 +59,6 @@ using namespace QGpgME; using namespace GpgME; using namespace GpgME::Configuration; -namespace -{ -struct Select1St { - template - const U &operator()(const std::pair &p) const - { - return p.first; - } - template - const U &operator()(const QPair &p) const - { - return p.first; - } -}; -} - // Just for the Q_ASSERT in the dtor. Not thread-safe, but who would // have 2 threads talking to gpgconf anyway? :) static bool s_duringClear = false;