diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-11-17 15:36:48 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-11-17 15:36:48 +0000 |
commit | aed79cca1a0f2c6209e8446b499b5702561f8858 (patch) | |
tree | 5f9f305d61ac30fb7bd33f05f85720b1ad122fba /pkgs/lib | |
parent | a56509c0db1682b6de1bbc4840cde7b1d147d4d9 (diff) | |
download | nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar.gz nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar.bz2 nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar.lz nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar.xz nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.tar.zst nixlib-aed79cca1a0f2c6209e8446b499b5702561f8858.zip |
* Another unused function.
svn path=/nixpkgs/trunk/; revision=18391
Diffstat (limited to 'pkgs/lib')
-rw-r--r-- | pkgs/lib/misc.nix | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkgs/lib/misc.nix b/pkgs/lib/misc.nix index 77abd032cec1..c1fee190268c 100644 --- a/pkgs/lib/misc.nix +++ b/pkgs/lib/misc.nix @@ -296,12 +296,6 @@ rec { flattenAttrs = set : map ( attr : builtins.getAttr attr set) (attrNames set); mapIf = cond : f : fold ( x : l : if (cond x) then [(f x)] ++ l else l) []; - # pick attrs subset_attr_names and apply f - subsetmap = f : attrs : subset_attr_names : - listToAttrs (fold ( attr : r : if hasAttr attr attrs - then r ++ [ ( nameValuePair attr ( f (getAttr attr attrs) ) ) ] else r ) [] - subset_attr_names ); - # prepareDerivationArgs tries to make writing configurable derivations easier # example: # prepareDerivationArgs { |