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.
This commit is contained in:
Ingo Klöcker 2022-10-11 10:19:37 +02:00
parent 8d019bbb8d
commit 4938c24a46
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -59,22 +59,6 @@ using namespace QGpgME;
using namespace GpgME; using namespace GpgME;
using namespace GpgME::Configuration; 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 // Just for the Q_ASSERT in the dtor. Not thread-safe, but who would
// have 2 threads talking to gpgconf anyway? :) // have 2 threads talking to gpgconf anyway? :)
static bool s_duringClear = false; static bool s_duringClear = false;