mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Refactor: Remove unused fields in InnerDecklistNode (#6086)
This commit is contained in:
parent
f31d30bf84
commit
d5d9f9bedc
2 changed files with 4 additions and 21 deletions
|
|
@ -93,8 +93,7 @@ int AbstractDecklistNode::depth() const
|
|||
}
|
||||
|
||||
InnerDecklistNode::InnerDecklistNode(InnerDecklistNode *other, InnerDecklistNode *_parent)
|
||||
: AbstractDecklistNode(_parent), name(other->getName()), cardSetShortName(other->getCardSetShortName()),
|
||||
cardCollectorNumber(other->getCardCollectorNumber()), cardProviderId(other->getCardProviderId())
|
||||
: AbstractDecklistNode(_parent), name(other->getName())
|
||||
{
|
||||
for (int i = 0; i < other->size(); ++i) {
|
||||
auto *inner = dynamic_cast<InnerDecklistNode *>(other->at(i));
|
||||
|
|
|
|||
|
|
@ -84,10 +84,6 @@ public:
|
|||
class InnerDecklistNode : public AbstractDecklistNode, public QList<AbstractDecklistNode *>
|
||||
{
|
||||
QString name;
|
||||
QString cardSetShortName;
|
||||
QString cardCollectorNumber;
|
||||
QString cardProviderId;
|
||||
class compareFunctor;
|
||||
|
||||
public:
|
||||
explicit InnerDecklistNode(QString _name = QString(), InnerDecklistNode *_parent = nullptr, int position = -1)
|
||||
|
|
@ -109,27 +105,15 @@ public:
|
|||
[[nodiscard]] virtual QString getVisibleName() const;
|
||||
[[nodiscard]] QString getCardProviderId() const override
|
||||
{
|
||||
return cardProviderId;
|
||||
}
|
||||
void setCardProviderId(const QString &_cardProviderId)
|
||||
{
|
||||
cardProviderId = _cardProviderId;
|
||||
return "";
|
||||
}
|
||||
[[nodiscard]] QString getCardSetShortName() const override
|
||||
{
|
||||
return cardSetShortName;
|
||||
}
|
||||
void setCardSetShortName(const QString &_cardSetShortName)
|
||||
{
|
||||
cardSetShortName = _cardSetShortName;
|
||||
return "";
|
||||
}
|
||||
[[nodiscard]] QString getCardCollectorNumber() const override
|
||||
{
|
||||
return cardCollectorNumber;
|
||||
}
|
||||
void setCardCollectorNumber(const QString &_cardCollectorNumber)
|
||||
{
|
||||
cardCollectorNumber = _cardCollectorNumber;
|
||||
return "";
|
||||
}
|
||||
[[nodiscard]] bool isDeckHeader() const override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue