Removed dead code

This commit is contained in:
Davis W. Frank
2011-06-08 08:29:39 -07:00
parent af7f1818b0
commit 3f4adf7715
2 changed files with 6 additions and 20 deletions

View File

@@ -2468,5 +2468,5 @@ jasmine.version_= {
"major": 1, "major": 1,
"minor": 1, "minor": 1,
"build": 0, "build": 0,
"revision": 1307335480 "revision": 1307546962
}; };

View File

@@ -2,11 +2,9 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
//inspired by mhevery's jasmine-node reporter //inspired by mhevery's jasmine-node reporter
//https://github.com/mhevery/jasmine-node //https://github.com/mhevery/jasmine-node
doneCallback = doneCallback || function() { doneCallback = doneCallback || function() {};
};
var defaultColumnsPerLine = 50, var ansi = {
ansi = {
green: '\033[32m', green: '\033[32m',
red: '\033[31m', red: '\033[31m',
yellow: '\033[33m', yellow: '\033[33m',
@@ -61,7 +59,9 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
function repeat(thing, times) { function repeat(thing, times) {
var arr = []; var arr = [];
for (var i = 0; i < times; i++) arr.push(thing); for (var i = 0; i < times; i++) {
arr.push(thing);
}
return arr; return arr;
} }
@@ -106,25 +106,12 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
summary(redStr, specs, expectations, failed); summary(redStr, specs, expectations, failed);
} }
function lineEnder(columnsPerLine) {
var columnsSoFar = 0;
return function() {
columnsSoFar += 1;
if (columnsSoFar == columnsPerLine) {
newline();
columnsSoFar = 0;
}
};
}
function fullSuiteDescription(suite) { function fullSuiteDescription(suite) {
var fullDescription = suite.description; var fullDescription = suite.description;
if (suite.parentSuite) fullDescription = fullSuiteDescription(suite.parentSuite) + " " + fullDescription; if (suite.parentSuite) fullDescription = fullSuiteDescription(suite.parentSuite) + " " + fullDescription;
return fullDescription; return fullDescription;
} }
var startNewLineIfNecessary = lineEnder(defaultColumnsPerLine);
this.now = function() { this.now = function() {
return new Date().getTime(); return new Date().getTime();
}; };
@@ -146,7 +133,6 @@ jasmine.TrivialConsoleReporter = function(print, doneCallback) {
} else { } else {
redF(); redF();
} }
// startNewLineIfNecessary();
}; };
this.suiteResults = []; this.suiteResults = [];