Refactor: clean up MessageLogWidget (#5870)

* use constants instead of static methods

* make static methods static

* remove unused variables
This commit is contained in:
RickyRister 2025-04-21 13:28:45 -07:00 committed by GitHub
parent ca73033aea
commit f7152befec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 77 deletions

View file

@ -21,22 +21,10 @@ private:
MessageContext_Mulligan
};
int mulliganNumber;
Player *mulliganPlayer;
MessageContext currentContext;
QString messagePrefix, messageSuffix;
const QString &tableConstant() const;
const QString &graveyardConstant() const;
const QString &exileConstant() const;
const QString &handConstant() const;
const QString &deckConstant() const;
const QString &sideboardConstant() const;
const QString &stackConstant() const;
QString sanitizeHtml(QString dirty) const;
QString cardLink(QString cardName) const;
QPair<QString, QString> getFromStr(CardZone *zone, QString cardName, int position, bool ownerChange) const;
static QPair<QString, QString> getFromStr(CardZone *zone, QString cardName, int position, bool ownerChange);
public slots:
void containerProcessingDone();