]> arthur.barton.de Git - bup.git/commitdiff
helpers: remove unused count()
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 23:25:49 +0000 (00:25 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:14:35 +0000 (12:14 -0600)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py

index 205343988b4d940477bd834aa834401d09c1e56e..35c88cdb42490c8acd9ac0dfdf0baa5d4de0a771 100644 (file)
@@ -876,11 +876,6 @@ def parse_num(s):
     return int(num*mult)
 
 
-def count(l):
-    """Count the number of elements in an iterator. (consumes the iterator)"""
-    return reduce(lambda x,y: x+1, l)
-
-
 saved_errors = []
 def add_error(e):
     """Append an error message to the list of saved errors.