Merge pull request #1129 from gregeinfrank/remove-runnable-lookup-table

Remove runnableLookupTable which is no longer used
This commit is contained in:
Greg Cobb
2016-07-18 23:39:15 -07:00
committed by GitHub

View File

@@ -13,7 +13,6 @@ getJasmineRequireObj().Env = function(j$) {
var realClearTimeout = j$.getGlobal().clearTimeout; var realClearTimeout = j$.getGlobal().clearTimeout;
this.clock = new j$.Clock(global, function () { return new j$.DelayedFunctionScheduler(); }, new j$.MockDate(global)); this.clock = new j$.Clock(global, function () { return new j$.DelayedFunctionScheduler(); }, new j$.MockDate(global));
var runnableLookupTable = {};
var runnableResources = {}; var runnableResources = {};
var currentSpec = null; var currentSpec = null;
@@ -208,7 +207,6 @@ getJasmineRequireObj().Env = function(j$) {
expectationFactory: expectationFactory, expectationFactory: expectationFactory,
expectationResultFactory: expectationResultFactory expectationResultFactory: expectationResultFactory
}); });
runnableLookupTable[topSuite.id] = topSuite;
defaultResourcesForRunnable(topSuite.id); defaultResourcesForRunnable(topSuite.id);
currentDeclarationSuite = topSuite; currentDeclarationSuite = topSuite;
@@ -306,7 +304,6 @@ getJasmineRequireObj().Env = function(j$) {
throwOnExpectationFailure: throwOnExpectationFailure throwOnExpectationFailure: throwOnExpectationFailure
}); });
runnableLookupTable[suite.id] = suite;
return suite; return suite;
}; };
@@ -408,8 +405,6 @@ getJasmineRequireObj().Env = function(j$) {
throwOnExpectationFailure: throwOnExpectationFailure throwOnExpectationFailure: throwOnExpectationFailure
}); });
runnableLookupTable[spec.id] = spec;
if (!self.specFilter(spec)) { if (!self.specFilter(spec)) {
spec.disable(); spec.disable();
} }