git.iko.soy/typeable/nixpkgs
on master help sign in
Remove lib.deepSeqList and lib.deepSeqAttrs

Both functions are broken and unused in the repo.

commita086858ef51eb564a378424b21f677428a34fc9e authorzimbatm <zimbatm@zimbatm.com> dateMon 29 Feb 2016, 20:20 (11 years ago) parenta75eb51
2 files changed+4−4
lib/attrsets.nix+1−1 lib/lists.nix+3−3
lib/attrsets.nix+1−1
@@ -364,5 +364,5 @@ rec {
364364 overrideExisting = old: new:
365365 old // listToAttrs (map (attr: nameValuePair attr (attrByPath [attr] old.${attr} new)) (attrNames old));
366366
367− deepSeqAttrs = x: y: deepSeqList (attrValues x) y;
367+ deepSeqAttrs = throw "removed 2016-02-29 because unused and broken";
368368}
lib/lists.nix+3−3
@@ -246,9 +246,6 @@ rec {
246246 init = list: assert list != []; take (length list - 1) list;
247247
248248
249− deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y;
250−
251−
252249 crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];
253250
254251
@@ -270,4 +267,7 @@ rec {
270267 # Subtracts list 'e' from another list. O(nm) complexity.
271268 subtractLists = e: filter (x: !(elem x e));
272269
270+ deepSeqList = throw "removed 2016-02-29 because unused and broken";
271+
272+
273273}