Remove lib.deepSeqList and lib.deepSeqAttrs

Both functions are broken and unused in the repo.
This commit is contained in:
zimbatm 2016-02-29 20:20:31 +00:00
parent a75eb513c6
commit a086858ef5
2 changed files with 4 additions and 4 deletions

View File

@ -364,5 +364,5 @@ rec {
overrideExisting = old: new: overrideExisting = old: new:
old // listToAttrs (map (attr: nameValuePair attr (attrByPath [attr] old.${attr} new)) (attrNames old)); 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";
} }

View File

@ -246,9 +246,6 @@ rec {
init = list: assert list != []; take (length list - 1) list; 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]; crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];
@ -270,4 +267,7 @@ rec {
# Subtracts list 'e' from another list. O(nm) complexity. # Subtracts list 'e' from another list. O(nm) complexity.
subtractLists = e: filter (x: !(elem x e)); subtractLists = e: filter (x: !(elem x e));
deepSeqList = throw "removed 2016-02-29 because unused and broken";
} }