Small cleanup
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
63c4469475
commit
ffaa47bf54
19 changed files with 54 additions and 127 deletions
|
@ -21,8 +21,6 @@
|
|||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QObject>
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
|
||||
#include "FileSystem.h"
|
||||
#include "StringUtils.h"
|
||||
|
@ -313,13 +311,4 @@ auto V1::getIndexForMod(QDir& index_dir, QVariant& mod_id) -> Mod
|
|||
return {};
|
||||
}
|
||||
|
||||
auto V1::getAllMods(QDir& index_dir) -> QList<Mod>
|
||||
{
|
||||
auto files = index_dir.entryList(QDir::Filter::Files);
|
||||
auto mods = QList<Mod>();
|
||||
std::transform(files.begin(), files.end(), std::back_inserter(mods),
|
||||
[&index_dir](auto file_name) { return getIndexForMod(index_dir, file_name); });
|
||||
return mods;
|
||||
}
|
||||
|
||||
} // namespace Packwiz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue