Remove unused private functions

As found by Cppcheck.

Change-Id: I697ea69992425ff41e35990ad00be312b35ba70a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Alessandro Portale
2020-09-20 23:40:16 +02:00
parent 35bab3a021
commit c68f49fefa
7 changed files with 0 additions and 78 deletions

View File

@@ -1080,25 +1080,6 @@ void ObjectValue::accept(ValueVisitor *visitor) const
visitor->visit(this);
}
bool ObjectValue::checkPrototype(const ObjectValue *, QSet<const ObjectValue *> *) const
{
#if 0
const int previousSize = processed->size();
processed->insert(this);
if (previousSize != processed->size()) {
if (this == proto)
return false;
if (prototype() && ! prototype()->checkPrototype(proto, processed))
return false;
return true;
}
#endif
return false;
}
void ObjectValue::processMembers(MemberProcessor *processor) const
{
for (auto it = m_members.cbegin(), end = m_members.cend(); it != end; ++it) {

View File

@@ -526,10 +526,6 @@ public:
QString originId() const
{ return m_originId; }
private:
bool checkPrototype(const ObjectValue *prototype, QSet<const ObjectValue *> *processed) const;
private:
ValueOwner *m_valueOwner;
QHash<QString, PropertyData> m_members;