[Client] Drop unused info member from the card info text widget

The CardInfoPtr member was only ever initialized to nullptr and never read;
remove it together with its initializer.
This commit is contained in:
Lukas Brübach 2026-09-18 05:11:41 +02:00
parent 1b4ea4297f
commit 5c8535dae5
2 changed files with 1 additions and 2 deletions

View file

@ -11,7 +11,7 @@
#include <libcockatrice/card/game_specific_terms.h> #include <libcockatrice/card/game_specific_terms.h>
#include <libcockatrice/card/relation/card_relation.h> #include <libcockatrice/card/relation/card_relation.h>
CardInfoTextWidget::CardInfoTextWidget(QWidget *parent) : QFrame(parent), info(nullptr) CardInfoTextWidget::CardInfoTextWidget(QWidget *parent) : QFrame(parent)
{ {
propsLabel = new QLabel; propsLabel = new QLabel;
propsLabel->setOpenExternalLinks(false); propsLabel->setOpenExternalLinks(false);

View file

@ -23,7 +23,6 @@ private:
QLabel *propsLabel; QLabel *propsLabel;
QScrollArea *propsScroll; QScrollArea *propsScroll;
QTextEdit *textLabel; QTextEdit *textLabel;
CardInfoPtr info;
ExactCard currentCard; ///< Last card set, re-rendered when the card language changes. ExactCard currentCard; ///< Last card set, re-rendered when the card language changes.
void setTexts(const QString &propsText, const QString &textText); void setTexts(const QString &propsText, const QString &textText);