summary refs log tree commit diff
path: root/pkgs/lib/lists.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 18:19:06 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-13 18:19:06 -0400
commit8225460f8222a5dab662f66f26c7dd8f22883ac4 (patch)
tree423b7168e39636193de27d62b05c2df051cb1af7 /pkgs/lib/lists.nix
parent37159c1b9a0ec77306866c539fbcd7b0e230f2d9 (diff)
downloadnixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar.gz
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar.bz2
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar.lz
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar.xz
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.tar.zst
nixpkgs-8225460f8222a5dab662f66f26c7dd8f22883ac4.zip
Remove obsolete eqLists function
Diffstat (limited to 'pkgs/lib/lists.nix')
-rw-r--r--pkgs/lib/lists.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkgs/lib/lists.nix b/pkgs/lib/lists.nix
index d6ab9cb88a7..e247a27ba16 100644
--- a/pkgs/lib/lists.nix
+++ b/pkgs/lib/lists.nix
@@ -126,13 +126,6 @@ rec {
   all = pred: fold (x: y: if pred x then y else false) true;
 
 
-  # Return true if each element of a list is equal, false otherwise.
-  eqLists = xs: ys:
-    if xs == [] && ys == [] then true
-    else if xs == [] || ys == [] then false
-    else head xs == head ys && eqLists (tail xs) (tail ys);
-
-    
   # Return a singleton list or an empty list, depending on a boolean
   # value.  Useful when building lists with optional elements
   # (e.g. `++ optional (system == "i686-linux") flashplayer').