Drop unneeded allitems pki collector

This commit is contained in:
Christian Hohnstaedt 2023-09-30 11:02:07 +02:00
parent 3a73697406
commit 4a0f90e1b8
3 changed files with 0 additions and 13 deletions

View File

@ -584,10 +584,6 @@ int main(int argc, char *argv[])
}
Database.close();
qDebug() << "pki_base::count" << pki_base::allitems.size();
foreach(pki_base *pki, pki_base::allitems)
qDebug() << "Remaining" << pki->getClassName()
<< pki->getIntName();
delete mainwin;
delete gui;
pki_export::free_elements();

View File

@ -20,7 +20,6 @@ pki_lookup Store;
QRegularExpression pki_base::limitPattern;
bool pki_base::pem_comment;
QList<pki_base*> pki_base::allitems;
QBrush pki_base::red, pki_base::cyan, pki_base::yellow;
pki_base::pki_base(const QString &name)
@ -30,9 +29,7 @@ pki_base::pki_base(const QString &name)
childItems.clear();
pkiType=none;
pkiSource=unknown;
allitems << this;
iamvisible = 1;
qDebug() << "NEW pki_base::count" << allitems.count();
}
pki_base::pki_base(const pki_base *p)
@ -42,17 +39,12 @@ pki_base::pki_base(const pki_base *p)
childItems.clear();
pkiType = p->pkiType;
pkiSource = p->pkiSource;
allitems << this;
iamvisible = 1;
qDebug() << "COPY pki_base::count" << allitems.count();
p->inheritFilename(this);
}
pki_base::~pki_base(void)
{
if (!allitems.removeOne(this))
qDebug() << "DEL" << getIntName() << "NOT FOUND";
qDebug() << "DEL pki_base::count" << allitems.count();
}
QString pki_base::comboText() const

View File

@ -56,7 +56,6 @@ class pki_base : public QObject
static unsigned hash(const QByteArray &ba);
static bool pem_comment;
static int count;
static QList<pki_base*> allitems;
static void setupColors(const QPalette &pal);
protected: