From: Alexander Barton Date: Wed, 31 Dec 2014 01:19:19 +0000 (+0100) Subject: do_bloom(): remove unused "count" variable X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=refs%2Fheads%2Funused-variable-do_bloom do_bloom(): remove unused "count" variable Signed-off-by: Alexander Barton --- diff --git a/cmd/bloom-cmd.py b/cmd/bloom-cmd.py index cd4506d..d74cce2 100755 --- a/cmd/bloom-cmd.py +++ b/cmd/bloom-cmd.py @@ -110,14 +110,13 @@ def do_bloom(path, outfilename): if b is None: tfname = os.path.join(path, 'bup.tmp.bloom') b = bloom.create(tfname, expected=add_count, k=opt.k) - count = 0 + icount = 0 for name in add: ix = git.open_idx(name) qprogress('bloom: writing %.2f%% (%d/%d objects)\r' % (icount*100.0/add_count, icount, add_count)) b.add_idx(ix) - count += 1 icount += len(ix) # Currently, there's an open file object for tfname inside b.