Commit bec5698d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove duplicate code check

parent 5b13e0ad
Pipeline #66023 passed with stage
in 53 minutes and 14 seconds
......@@ -44,7 +44,6 @@ void ShortUrlEnginePluginManagerPrivate::initializePlugins()
QVectorIterator<KPluginMetaData> i(plugins);
i.toBack();
QSet<QString> unique;
while (i.hasPrevious()) {
ShortUrlEnginePluginInfo info;
const KPluginMetaData data = i.previous();
......@@ -52,13 +51,8 @@ void ShortUrlEnginePluginManagerPrivate::initializePlugins()
info.metaDataFileName = data.fileName();
info.pluginName = data.name();
// only load plugins once, even if found multiple times!
if (unique.contains(info.metaDataFileNameBaseName)) {
continue;
}
info.plugin = nullptr;
mPluginList.push_back(info);
unique.insert(info.metaDataFileNameBaseName);
}
const QVector<ShortUrlEnginePluginInfo>::iterator end(mPluginList.end());
for (QVector<ShortUrlEnginePluginInfo>::iterator it = mPluginList.begin(); it != end; ++it) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment