Rip out unused coderack.postings and coderack.runCodelets. NFC.
This commit is contained in:
@ -24,8 +24,6 @@ class Coderack(object):
|
|||||||
def __init__(self, ctx):
|
def __init__(self, ctx):
|
||||||
self.ctx = ctx
|
self.ctx = ctx
|
||||||
self.reset()
|
self.reset()
|
||||||
self.runCodelets = {}
|
|
||||||
self.postings = {}
|
|
||||||
self.methods = {}
|
self.methods = {}
|
||||||
|
|
||||||
for name in dir(codeletMethods):
|
for name in dir(codeletMethods):
|
||||||
@ -119,7 +117,6 @@ class Coderack(object):
|
|||||||
return 3
|
return 3
|
||||||
|
|
||||||
def post(self, codelet):
|
def post(self, codelet):
|
||||||
self.postings[codelet.name] = self.postings.get(codelet.name, 0) + 1
|
|
||||||
self.codelets += [codelet]
|
self.codelets += [codelet]
|
||||||
if len(self.codelets) > 100:
|
if len(self.codelets) > 100:
|
||||||
oldCodelet = self.chooseOldCodelet()
|
oldCodelet = self.chooseOldCodelet()
|
||||||
@ -292,7 +289,6 @@ class Coderack(object):
|
|||||||
def run(self, codelet):
|
def run(self, codelet):
|
||||||
methodName = codelet.name
|
methodName = codelet.name
|
||||||
self.codeletsRun += 1
|
self.codeletsRun += 1
|
||||||
self.runCodelets[methodName] = self.runCodelets.get(methodName, 0) + 1
|
|
||||||
method = self.methods[methodName]
|
method = self.methods[methodName]
|
||||||
try:
|
try:
|
||||||
method(self.ctx, codelet)
|
method(self.ctx, codelet)
|
||||||
|
|||||||
Reference in New Issue
Block a user