chore(doc-gen): speed up class member sorting

This commit is contained in:
Peter Bacon Darwin 2015-05-17 22:14:42 +01:00
parent db5486a347
commit ed6298c33f
1 changed files with 0 additions and 9 deletions

View File

@ -208,15 +208,6 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
};
function insertSorted(collection, item, property) {
var index = collection.length;
while(index>0) {
if(collection[index-1][property] < item[property]) break;
index -= 1;
}
collection.splice(index, 0, item);
}
function convertToRegexCollection(items) {
if (!items) return [];