Add comment

This commit is contained in:
Alexandre Archambault 2015-06-25 00:18:51 +01:00
parent 27c8cc9929
commit 07278edd6d
1 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,13 @@ object Orders {
.groupBy(dep => (dep.optional, dep.scope))
.toList
/*
* Iterates over all pairs (xDep, yDep) from `dependencies`.
* If xDep < yDep (all that yDep brings is already brought by xDep), remove yDep.
*
* The (partial) order on dependencies is made of the ones on scope, optional, and exclusions.
*/
val remove =
for {
List(((xOpt, xScope), xDeps), ((yOpt, yScope), yDeps)) <- groupedDependencies.combinations(2)