aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-10-11 08:19:37 +0000
committerIngo Klöcker <[email protected]>2022-10-11 09:00:15 +0000
commit4938c24a466bf05e707d3e6cbf759705adc7e8d6 (patch)
treef64d6639c385f13f94db0a8ca67f30bb7bc58e3d
parentbuild,qt: Allow building QGpgME for Qt 6 (diff)
downloadgpgme-4938c24a466bf05e707d3e6cbf759705adc7e8d6.tar.gz
gpgme-4938c24a466bf05e707d3e6cbf759705adc7e8d6.zip
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.
-rw-r--r--lang/qt/src/qgpgmenewcryptoconfig.cpp16
1 files changed, 0 insertions, 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 <typename U, typename V>
- const U &operator()(const std::pair<U, V> &p) const
- {
- return p.first;
- }
- template <typename U, typename V>
- const U &operator()(const QPair<U, V> &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;