From 8225460f8222a5dab662f66f26c7dd8f22883ac4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 13 Aug 2012 18:19:06 -0400 Subject: Remove obsolete eqLists function --- pkgs/lib/lists.nix | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pkgs/lib/lists.nix') 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'). -- cgit 1.4.1