mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-12 11:06:25 -05:00
don't waste bandwidth with spaces or default-value items
This commit is contained in:
@@ -109,7 +109,6 @@ AbstractDecklistNode *InnerDecklistNode::findChild(const QString &name)
|
||||
|
||||
int InnerDecklistNode::height() const
|
||||
{
|
||||
Q_ASSERT(!isEmpty());
|
||||
return at(0)->height() + 1;
|
||||
}
|
||||
|
||||
@@ -469,11 +468,6 @@ void DeckList::cleanList()
|
||||
setComments();
|
||||
}
|
||||
|
||||
bool DeckList::isEmpty() const
|
||||
{
|
||||
return root->isEmpty();
|
||||
}
|
||||
|
||||
DecklistCardNode *DeckList::addCard(const QString &cardName, const QString &zoneName)
|
||||
{
|
||||
InnerDecklistNode *zoneNode = dynamic_cast<InnerDecklistNode *>(root->findChild(zoneName));
|
||||
|
||||
Reference in New Issue
Block a user