diff options
author | Ingo Klöcker <[email protected]> | 2022-10-11 08:19:37 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-10-11 09:00:15 +0000 |
commit | 4938c24a466bf05e707d3e6cbf759705adc7e8d6 (patch) | |
tree | f64d6639c385f13f94db0a8ca67f30bb7bc58e3d | |
parent | build,qt: Allow building QGpgME for Qt 6 (diff) | |
download | gpgme-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.cpp | 16 |
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; |