remove repeatString from util

This commit is contained in:
Fabian Jakobs 2010-12-16 18:25:16 +01:00
commit cb547d86bc

View file

@ -260,21 +260,6 @@ exports.makeArray = function(number, character) {
return newArray;
};
/**
* Repeat a string a given number of times.
* @param string String to repeat
* @param repeat Number of times to repeat
*/
exports.repeatString = function(string, repeat) {
var newstring = '';
for (var i = 0; i < repeat; i++) {
newstring += string;
}
return newstring;
};
/**
* Given a row, find the number of leading spaces.
* E.g. an array with the string " aposjd" would return 2