From 19b2c22a9f54c6abc7879edbfabe069437ca8c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 17 Sep 2026 14:44:30 +0200 Subject: [PATCH] [DeckList] Remove obsolete Qt5 qHash compatibility shim 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. --- .../libcockatrice/deck_list/deck_list.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libcockatrice_deck_list/libcockatrice/deck_list/deck_list.cpp b/libcockatrice_deck_list/libcockatrice/deck_list/deck_list.cpp index 1a3876cd3..af8628d21 100644 --- a/libcockatrice_deck_list/libcockatrice/deck_list/deck_list.cpp +++ b/libcockatrice_deck_list/libcockatrice/deck_list/deck_list.cpp @@ -13,14 +13,6 @@ #include #include -#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