diff --git a/lib/main.cpp b/lib/main.cpp index 95215806..6d8a303f 100644 --- a/lib/main.cpp +++ b/lib/main.cpp @@ -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(); diff --git a/lib/pki_base.cpp b/lib/pki_base.cpp index 2855f78f..6097b9ea 100644 --- a/lib/pki_base.cpp +++ b/lib/pki_base.cpp @@ -20,7 +20,6 @@ pki_lookup Store; QRegularExpression pki_base::limitPattern; bool pki_base::pem_comment; -QList 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 diff --git a/lib/pki_base.h b/lib/pki_base.h index 9537bfa0..ea660e88 100644 --- a/lib/pki_base.h +++ b/lib/pki_base.h @@ -56,7 +56,6 @@ class pki_base : public QObject static unsigned hash(const QByteArray &ba); static bool pem_comment; static int count; - static QList allitems; static void setupColors(const QPalette &pal); protected: