remove useless list items filtering from UIC database info

since the connections list is cleared before that and m_connections is
private there is no way it could've changed, even after calling
TreeWalker::acceptUI()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-06-07 20:44:36 +03:00
parent 82b4dff15c
commit fb583e44fd
2 changed files with 0 additions and 10 deletions

View file

@ -56,8 +56,6 @@ void DatabaseInfo::acceptUI(DomUI *node)
m_fields.clear();
TreeWalker::acceptUI(node);
m_connections = unique(m_connections);
}
void DatabaseInfo::acceptWidget(DomWidget *node)

View file

@ -115,14 +115,6 @@ inline QHash<QString, DomProperty *> propertyMap(const QList<DomProperty *> &pro
return map;
}
inline QStringList unique(const QStringList &lst)
{
QHash<QString, bool> h;
for (int i=0; i<lst.size(); ++i)
h.insert(lst.at(i), true);
return h.keys();
}
QT_END_NAMESPACE
#endif // UTILS_H