From f43ee8dfbe2b028197e4d7706624871e791ebb1b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 16 Sep 2026 23:41:44 +0100 Subject: Remove promises.nfcall() --- lib/promises.js | 6 ------ test/main.tests.js | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/promises.js b/lib/promises.js index 6ceee1c..e05cf11 100644 --- a/lib/promises.js +++ b/lib/promises.js @@ -43,12 +43,6 @@ exports.try = function(func) { } }; -exports.nfcall = function(func) { - var args = Array.prototype.slice.call(arguments, 1); - var promisedFunc = bluebird.promisify(func); - return promisedFunc.apply(null, args); -}; - bluebird.prototype.also = function(func) { return this.then(function(value) { var returnValue = _.extend({}, value, func(value)); diff --git a/test/main.tests.js b/test/main.tests.js index 06824f0..f1bc363 100644 --- a/test/main.tests.js +++ b/test/main.tests.js @@ -99,5 +99,5 @@ function tryRunMammoth(args) { } function createTempDir() { - return promises.nfcall(temp.mkdir, null); + return temp.mkdir(); } -- cgit v1.2.3