Comment out unused variables in soc.logic.allocations module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Wed, 15 Apr 2009 19:13:52 +0000
changeset 2188 95b23c66257b
parent 2187 e4172c7792f5
child 2189 8c9ab031a6b3
Comment out unused variables in soc.logic.allocations module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/logic/allocations.py
--- a/app/soc/logic/allocations.py	Wed Apr 15 19:13:16 2009 +0000
+++ b/app/soc/logic/allocations.py	Wed Apr 15 19:13:52 2009 +0000
@@ -252,8 +252,8 @@
     """An algorithm that reliable calculates the slots assignments.
     """
 
-    adjusted_orgs = self.adjusted_orgs
-    adjusted_slots = self.adjusted_slots
+    # adjusted_orgs = self.adjusted_orgs
+    # adjusted_slots = self.adjusted_slots
     locked_orgs = self.locked_orgs
     locked_slots = self.locked_slots
     unlocked_orgs = self.unlocked_orgs
@@ -261,7 +261,7 @@
 
     available_slots = self.slots
     allocations = {}
-    slack = {}
+    # slack = {}
 
     # take out the easy ones
     for org in locked_orgs:
@@ -283,7 +283,7 @@
 
     pop_per_slot = float(available_slots)/float(total_popularity)
 
-    slack = 0
+    # slack = 0
     wanted = {}
 
     # filter out all those that deserve more than their maximum
@@ -303,7 +303,7 @@
 
     # distribute the slack
     while available_slots > 0 and (sum(wanted.values()) > 0):
-      for org, amount in wanted.iteritems():
+      for org, _ in wanted.iteritems():
         available_slots = self.slots - sum(allocations.values())
         if available_slots <= 0:
           break