Commit 16183a96 authored by Romain Courteaud's avatar Romain Courteaud

Promise progress channel is not used.

parent 0c2428ca
...@@ -300,7 +300,6 @@ ...@@ -300,7 +300,6 @@
promise_list = [], promise_list = [],
promise, promise,
reject, reject,
notify,
resolved; resolved;
if (!(this instanceof Monitor)) { if (!(this instanceof Monitor)) {
...@@ -317,7 +316,7 @@ ...@@ -317,7 +316,7 @@
promise_list = []; promise_list = [];
} }
promise = new RSVP.Promise(function promiseMonitor(done, fail, progress) { promise = new RSVP.Promise(function promiseMonitor(done, fail) {
reject = function rejectMonitor(rejectedReason) { reject = function rejectMonitor(rejectedReason) {
if (resolved) { if (resolved) {
return; return;
...@@ -328,7 +327,6 @@ ...@@ -328,7 +327,6 @@
canceller(); canceller();
return fail(rejectedReason); return fail(rejectedReason);
}; };
notify = progress;
}, canceller); }, canceller);
monitor.cancel = function cancelMonitor() { monitor.cancel = function cancelMonitor() {
...@@ -377,9 +375,6 @@ ...@@ -377,9 +375,6 @@
} }
reject(rejectedReason); reject(rejectedReason);
throw rejectedReason; throw rejectedReason;
}, function handlePromiseToMonitorNotification(notificationValue) {
notify(notificationValue);
return notificationValue;
}); });
promise_list.push(queue); promise_list.push(queue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment