Skip to content

Commit

Permalink
Remove lib.deepSeqList and lib.deepSeqAttrs
Browse files Browse the repository at this point in the history
Both functions are broken and unused in the repo.
  • Loading branch information
zimbatm committed Mar 9, 2016
1 parent a75eb51 commit a086858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/attrsets.nix
Expand Up @@ -364,5 +364,5 @@ rec {
overrideExisting = old: new:
old // listToAttrs (map (attr: nameValuePair attr (attrByPath [attr] old.${attr} new)) (attrNames old));

deepSeqAttrs = x: y: deepSeqList (attrValues x) y;
deepSeqAttrs = throw "removed 2016-02-29 because unused and broken";
}
6 changes: 3 additions & 3 deletions lib/lists.nix
Expand Up @@ -246,9 +246,6 @@ rec {
init = list: assert list != []; take (length list - 1) list;


deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y;


crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];


Expand All @@ -270,4 +267,7 @@ rec {
# Subtracts list 'e' from another list. O(nm) complexity.
subtractLists = e: filter (x: !(elem x e));

deepSeqList = throw "removed 2016-02-29 because unused and broken";


}

0 comments on commit a086858

Please sign in to comment.