From 668084adfec81b9c3f9f384afec0a630c5cbec67 Mon Sep 17 00:00:00 2001 From: dismine Date: Sat, 5 Oct 2013 14:02:28 +0300 Subject: [PATCH] Deleted metod GarbageCollector. --HG-- branch : develop --- xml/vdomdocument.cpp | 19 ------------------- xml/vdomdocument.h | 1 - 2 files changed, 20 deletions(-) diff --git a/xml/vdomdocument.cpp b/xml/vdomdocument.cpp index ad6d916a1..161a272c6 100644 --- a/xml/vdomdocument.cpp +++ b/xml/vdomdocument.cpp @@ -1034,25 +1034,6 @@ void VDomDocument::setCurrentData(){ } } -void VDomDocument::GarbageCollector(){ - QHashIterator t(tools); - while (t.hasNext()) { - t.next(); - VDataTool *tool = t.value(); - if(tool->referens() <= 0){ - QDomElement domElement = elementById(QString().setNum(t.key())); - if(domElement.isElement()){ - QDomNode parent = domElement.parentNode(); - if(!parent.isNull()){ - parent.removeChild(domElement); - } else { - qWarning()< 0, Q_FUNC_INFO, "id <= 0"); Q_CHECK_PTR(tool); diff --git a/xml/vdomdocument.h b/xml/vdomdocument.h index 2a28d6d88..e818c519b 100644 --- a/xml/vdomdocument.h +++ b/xml/vdomdocument.h @@ -63,7 +63,6 @@ public: qint64 getCursor() const; void setCursor(const qint64 &value); void setCurrentData(); - void GarbageCollector(); void AddTool(const qint64 &id, VDataTool *tool); void UpdateToolData(const qint64 &id, VContainer *data); void IncrementReferens(qint64 id) const;