Remove some unused global variables. NFC.
This commit is contained in:
@ -11,9 +11,6 @@ from codelet import Codelet
|
|||||||
from coderackPressure import CoderackPressures
|
from coderackPressure import CoderackPressures
|
||||||
|
|
||||||
NUMBER_OF_BINS = 7
|
NUMBER_OF_BINS = 7
|
||||||
MAX_NUMBER_OF_CODELETS = 100
|
|
||||||
|
|
||||||
codeletsUsed = {}
|
|
||||||
|
|
||||||
|
|
||||||
def getUrgencyBin(urgency):
|
def getUrgencyBin(urgency):
|
||||||
@ -341,8 +338,6 @@ class CodeRack(object):
|
|||||||
if not callable(method):
|
if not callable(method):
|
||||||
raise RuntimeError('Cannot call %s()' % methodName)
|
raise RuntimeError('Cannot call %s()' % methodName)
|
||||||
args, _varargs, _varkw, _defaults = inspect.getargspec(method)
|
args, _varargs, _varkw, _defaults = inspect.getargspec(method)
|
||||||
#global codeletsUsed
|
|
||||||
#codeletsUsed[methodName] = codeletsUsed.get(methodName,0) + 1
|
|
||||||
try:
|
try:
|
||||||
if 'codelet' in args:
|
if 'codelet' in args:
|
||||||
method(codelet)
|
method(codelet)
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
from workspace import workspace
|
from workspace import workspace
|
||||||
from workspaceStructure import WorkspaceStructure
|
from workspaceStructure import WorkspaceStructure
|
||||||
from formulas import getMappings
|
from formulas import getMappings
|
||||||
|
|||||||
@ -2,8 +2,6 @@ import logging
|
|||||||
|
|
||||||
from workspaceString import WorkspaceString
|
from workspaceString import WorkspaceString
|
||||||
|
|
||||||
unknownAnswer = '?'
|
|
||||||
|
|
||||||
|
|
||||||
def __adjustUnhappiness(values):
|
def __adjustUnhappiness(values):
|
||||||
result = sum(values) / 2
|
result = sum(values) / 2
|
||||||
|
|||||||
Reference in New Issue
Block a user