[Pkg-javascript-commits] [pdf.js] 63/210: Remove LegacyPromise

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit ad732f64037a317f6a728c8d692d3f73a0879cb8
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri May 2 01:48:17 2014 +0200

    Remove LegacyPromise
---
 src/shared/util.js | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/shared/util.js b/src/shared/util.js
index 91bf03d..dc7b00a 100644
--- a/src/shared/util.js
+++ b/src/shared/util.js
@@ -934,24 +934,6 @@ function isPDFFunction(v) {
 }
 
 /**
- * Legacy support for PDFJS Promise implementation.
- * TODO remove eventually
- * @ignore
- */
-var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
-  return function LegacyPromise() {
-    var resolve, reject;
-    var promise = new Promise(function (resolve_, reject_) {
-      resolve = resolve_;
-      reject = reject_;
-    });
-    promise.resolve = resolve;
-    promise.reject = reject;
-    return promise;
-  };
-})();
-
-/**
  * Promise Capability object.
  *
  * @typedef {Object} PromiseCapability

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list