summary refs log tree commit diff
path: root/pkgs/lib/strings-with-deps.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-08-26 14:13:05 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-08-26 14:13:05 +0000
commit921de5b511a2403cadb0749f5d24dfcf25b876c5 (patch)
treedd7dfb6236fdd636567dda75d5d80b71cc0341f6 /pkgs/lib/strings-with-deps.nix
parent24487fa73ecab0b78aefd2e0a86ff90b14abf8ba (diff)
downloadnixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar.gz
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar.bz2
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar.lz
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar.xz
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.tar.zst
nixpkgs-921de5b511a2403cadb0749f5d24dfcf25b876c5.zip
* Remove the warning, it's rather annoying.
svn path=/nixpkgs/trunk/; revision=16862
Diffstat (limited to 'pkgs/lib/strings-with-deps.nix')
-rw-r--r--pkgs/lib/strings-with-deps.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/lib/strings-with-deps.nix b/pkgs/lib/strings-with-deps.nix
index a367559653b..7543beddb52 100644
--- a/pkgs/lib/strings-with-deps.nix
+++ b/pkgs/lib/strings-with-deps.nix
@@ -52,23 +52,19 @@ rec {
 
   textClosureList = predefined: arg:
     let
-      warn = map (x : if isAttrs x
-            then builtins.trace "warning, passing attrs to textClosureList instead of dep entry names is depreceated and may cause failure" x
-            else x );
-
       f = done: todo:
         if todo == [] then {result = []; inherit done;}
         else
           let entry = head todo; in
           if isAttrs entry then
-            let x = f done (warn entry.deps);
+            let x = f done entry.deps;
                 y = f x.done (tail todo);
             in { result = x.result ++ [entry.text] ++ y.result;
                  done = y.done;
                }
           else if hasAttr entry done then f done (tail todo)
           else f (done // listToAttrs [{name = entry; value = 1;}]) ([(builtins.getAttr entry predefined)] ++ tail todo);
-    in (f {} (warn arg)).result;
+    in (f {} arg).result;
 
   textClosureMap = f: predefined: names:
     concatStringsSep "\n" (map f (textClosureList predefined names));