diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-13 00:08:21 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-13 15:15:16 -0400 |
commit | 3bf4437622237e5c5c2d23358b0dcfe0839222e6 (patch) | |
tree | 183c9ef9dc491606e28e7304656ca9d1695fadf9 /pkgs | |
parent | 1baf48f0870d7077643e1ad92e2308b422a71e90 (diff) | |
download | nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar.gz nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar.bz2 nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar.lz nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar.xz nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.tar.zst nixlib-3bf4437622237e5c5c2d23358b0dcfe0839222e6.zip |
Remove obsolete backwards compatibility hack for getAttr
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/lib/attrsets.nix | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pkgs/lib/attrsets.nix b/pkgs/lib/attrsets.nix index 5e4e9df37110..8d1521812f9b 100644 --- a/pkgs/lib/attrsets.nix +++ b/pkgs/lib/attrsets.nix @@ -10,7 +10,7 @@ with { }; rec { - inherit (builtins) attrNames listToAttrs hasAttr isAttrs; + inherit (builtins) attrNames listToAttrs hasAttr isAttrs getAttr; /* Return an attribute from nested attribute sets. For instance @@ -33,15 +33,6 @@ rec { nameValuePair (head attrPath) (setAttrByPath (tail attrPath) value) )]; - - /* Backwards compatibility hack: lib.attrByPath used to be called - lib.getAttr, which was confusing given that there was also a - builtins.getAttr. Eventually we'll drop this hack and - lib.getAttr will just be an alias for builtins.getAttr. */ - getAttr = a: b: if isString a - then builtins.getAttr a b - else c: builtins.trace "Deprecated use of lib.getAttr!" (attrByPath a b c); - getAttrFromPath = attrPath: set: let errorMsg = "cannot find attribute `" + concatStringsSep "." attrPath + "'"; |