mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
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:
parent
82b4dff15c
commit
fb583e44fd
2 changed files with 0 additions and 10 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue