mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -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)
|
InnerDecklistNode::InnerDecklistNode(InnerDecklistNode *other, InnerDecklistNode *_parent)
|
||||||
: AbstractDecklistNode(_parent), name(other->getName()), cardSetShortName(other->getCardSetShortName()),
|
: AbstractDecklistNode(_parent), name(other->getName())
|
||||||
cardCollectorNumber(other->getCardCollectorNumber()), cardProviderId(other->getCardProviderId())
|
|
||||||
{
|
{
|
||||||
for (int i = 0; i < other->size(); ++i) {
|
for (int i = 0; i < other->size(); ++i) {
|
||||||
auto *inner = dynamic_cast<InnerDecklistNode *>(other->at(i));
|
auto *inner = dynamic_cast<InnerDecklistNode *>(other->at(i));
|
||||||
|
|
|
||||||
|
|
@ -84,10 +84,6 @@ public:
|
||||||
class InnerDecklistNode : public AbstractDecklistNode, public QList<AbstractDecklistNode *>
|
class InnerDecklistNode : public AbstractDecklistNode, public QList<AbstractDecklistNode *>
|
||||||
{
|
{
|
||||||
QString name;
|
QString name;
|
||||||
QString cardSetShortName;
|
|
||||||
QString cardCollectorNumber;
|
|
||||||
QString cardProviderId;
|
|
||||||
class compareFunctor;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit InnerDecklistNode(QString _name = QString(), InnerDecklistNode *_parent = nullptr, int position = -1)
|
explicit InnerDecklistNode(QString _name = QString(), InnerDecklistNode *_parent = nullptr, int position = -1)
|
||||||
|
|
@ -109,27 +105,15 @@ public:
|
||||||
[[nodiscard]] virtual QString getVisibleName() const;
|
[[nodiscard]] virtual QString getVisibleName() const;
|
||||||
[[nodiscard]] QString getCardProviderId() const override
|
[[nodiscard]] QString getCardProviderId() const override
|
||||||
{
|
{
|
||||||
return cardProviderId;
|
return "";
|
||||||
}
|
|
||||||
void setCardProviderId(const QString &_cardProviderId)
|
|
||||||
{
|
|
||||||
cardProviderId = _cardProviderId;
|
|
||||||
}
|
}
|
||||||
[[nodiscard]] QString getCardSetShortName() const override
|
[[nodiscard]] QString getCardSetShortName() const override
|
||||||
{
|
{
|
||||||
return cardSetShortName;
|
return "";
|
||||||
}
|
|
||||||
void setCardSetShortName(const QString &_cardSetShortName)
|
|
||||||
{
|
|
||||||
cardSetShortName = _cardSetShortName;
|
|
||||||
}
|
}
|
||||||
[[nodiscard]] QString getCardCollectorNumber() const override
|
[[nodiscard]] QString getCardCollectorNumber() const override
|
||||||
{
|
{
|
||||||
return cardCollectorNumber;
|
return "";
|
||||||
}
|
|
||||||
void setCardCollectorNumber(const QString &_cardCollectorNumber)
|
|
||||||
{
|
|
||||||
cardCollectorNumber = _cardCollectorNumber;
|
|
||||||
}
|
}
|
||||||
[[nodiscard]] bool isDeckHeader() const override
|
[[nodiscard]] bool isDeckHeader() const override
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue