aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-09 20:22:30 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-09 20:22:30 +0100
commita02b92d7b7d95ab2e8f9e2dfb8a7661b61306674 (patch)
tree8a043ea63bdc1017aae0fa9477821707b12683c8
parenta424b4fd717ab97f66a00be5ac026d6dcf3b46ce (diff)
Remove unused function
-rw-r--r--lib/document-to-html.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index ab7dca4..fe3b566 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -113,18 +113,3 @@ function DocumentConverter(options) {
convertToHtml: convertToHtml
}
}
-
-function forEachPromise(array, func) {
- var index = -1;
- return next();
-
- function next() {
- index++;
- if (index < array.length) {
- return q.when(func(array[index]))
- .then(next);
- } else {
- return q.when();
- }
- }
-}