Skip to content

Commit a953473

Browse files
committed
removed unused code
1 parent 7f34fad commit a953473

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

lib/util.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
copy: copy,
88
objectToPromise: objectToPromise,
99
promiseMapSerial: promiseMapSerial,
10-
promiseMapSerial2: promiseMapSerial2,
1110
isPromise: isPromise,
1211
toPromise: toPromise,
1312
toAbsolutePointer: toAbsolutePointer
@@ -64,17 +63,6 @@ function promiseMapSerial(arr, func, thisArg) {
6463
}
6564

6665

67-
function promiseMapSerial2(arr, func, thisArg) {
68-
var results = Array(arr.length);
69-
for (var i=0; i<arr.length; i++) {
70-
var item = arr[i];
71-
item = i ? results[i-1].then(() => item) : toPromise(item);
72-
results[i] = item.then((value) => func.call(thisArg, item, i));
73-
}
74-
return results;
75-
}
76-
77-
7866
function isPromise(value) {
7967
return value && typeof value.then == 'function';
8068
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "^2.2.0",
3838
"istanbul": "^0.4.2",
3939
"jsonscript-test": "^0.1.1",
40-
"jsonscript-test-suite": "^0.1.2",
40+
"jsonscript-test-suite": "^0.1.3",
4141
"mocha": "^2.4.5",
4242
"pre-commit": "^1.1.2"
4343
}

0 commit comments

Comments
 (0)