KItemListHeaderWidget: drop unnecessary remove() call

If a key is not in the hash, there is nothing to be removed.
This commit is contained in:
Elvis Angelaccio 2019-09-29 18:42:52 +02:00
parent 983273924d
commit 35add56ea4

View file

@ -93,7 +93,6 @@ void KItemListHeaderWidget::setColumns(const QList<QByteArray>& roles)
{ {
foreach (const QByteArray& role, roles) { foreach (const QByteArray& role, roles) {
if (!m_columnWidths.contains(role)) { if (!m_columnWidths.contains(role)) {
m_columnWidths.remove(role);
m_preferredColumnWidths.remove(role); m_preferredColumnWidths.remove(role);
} }
} }