Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 24, 2017
1 parent eeca1e7 commit bfaf773
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions doomsday/apps/libdoomsday/src/gameprofiles.cpp
Expand Up @@ -297,15 +297,9 @@ StringList GameProfiles::Profile::packagesAffectingGameplay() const

StringList GameProfiles::Profile::unavailablePackages() const
{
StringList ids;
for (String const &pkg : allRequiredPackages())
{
if (!App::packageLoader().isAvailable(pkg))
{
ids << pkg;
}
}
return ids;
return de::filter(allRequiredPackages(), [] (String const &pkgId) {
return !PackageLoader::get().isAvailable(pkgId);
});
}

bool GameProfiles::Profile::isCompatibleWithPackages(StringList const &ids) const
Expand Down

0 comments on commit bfaf773

Please sign in to comment.