]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Why don't we stick that code block in only once?
authorEvan Broder <broder@mit.edu>
Sat, 30 May 2009 05:52:40 +0000 (22:52 -0700)
committerEvan Broder <broder@mit.edu>
Sat, 30 May 2009 05:52:40 +0000 (22:52 -0700)
bluechips/model/expenditure.py

index 58456fb8a71730d48c0a4936da2eabd1ee1384ca..591bbbd17169764d50fc55ef0fcbe5de9e19ec4a 100644 (file)
@@ -60,12 +60,6 @@ class Expenditure(object):
         
         total = sum(split_dict.itervalues())
         
-        for user, share in split_dict.items():
-            if share == 0:
-                del split_dict[user]
-            else:
-                split_dict[user] = share / total
-        
         for user, share in split_dict.items():
             if share == 0:
                 del split_dict[user]