mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 00:55:09 -07: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:
parent
fd82b140a8
commit
61c1215a30
1 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue