From ad732f64037a317f6a728c8d692d3f73a0879cb8 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 2 May 2014 01:48:17 +0200 Subject: [PATCH] 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 91bf03d8c..dc7b00a1e 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -933,24 +933,6 @@ function isPDFFunction(v) { return fnDict.has('FunctionType'); } -/** - * 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. *