mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 12:28:09 -05:00
[DeckList] Remove obsolete Qt5 qHash compatibility shim (#7300)
The codebase is Qt6-only since #7071 dropped Qt5, so the #if QT_VERSION < 0x050600 branch can never compile. Removing it deletes a dead qHash overload that only existed to support QRegularExpression in QSet on old Qt versions. Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
@@ -13,14 +13,6 @@
|
||||
#include <QTextStream>
|
||||
#include <algorithm>
|
||||
|
||||
#if QT_VERSION < 0x050600
|
||||
// qHash on QRegularExpression was added in 5.6, FIX IT
|
||||
uint qHash(const QRegularExpression &key, uint seed) noexcept
|
||||
{
|
||||
return qHash(key.pattern(), seed); // call qHash on pattern QString instead
|
||||
}
|
||||
#endif
|
||||
|
||||
static const QString CURRENT_SIDEBOARD_PLAN_KEY = "";
|
||||
|
||||
bool DeckList::Metadata::isEmpty() const
|
||||
|
||||
Reference in New Issue
Block a user