From ed6298c33fd0d930e7220a18ab93dc9c56428781 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sun, 17 May 2015 22:14:42 +0100 Subject: [PATCH] chore(doc-gen): speed up class member sorting --- docs/dgeni-package/processors/readTypeScriptModules.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/dgeni-package/processors/readTypeScriptModules.js b/docs/dgeni-package/processors/readTypeScriptModules.js index c4b88a4069..068215ba22 100644 --- a/docs/dgeni-package/processors/readTypeScriptModules.js +++ b/docs/dgeni-package/processors/readTypeScriptModules.js @@ -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 [];