From 8817b4da8d5331c3c42772a0a5ac3250fc0b188a Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sat, 8 Jul 2017 05:51:02 +0200 Subject: [PATCH] refactor: remove unused promise completer (#5522) * The PromiseCompleter is not used anywhere and in reality everbody can implement such a thing on his own. Also since there is the best practice to resolve/reject the promise while being inside of the anonymous function. --- src/lib/core/async/promise-completer.ts | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/lib/core/async/promise-completer.ts diff --git a/src/lib/core/async/promise-completer.ts b/src/lib/core/async/promise-completer.ts deleted file mode 100644 index 53691f201d1..00000000000 --- a/src/lib/core/async/promise-completer.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -/** @docs-private */ -export class PromiseCompleter { - promise: Promise; - resolve: (value?: R | PromiseLike) => void; - reject: (error?: any, stackTrace?: string) => void; - - constructor() { - this.promise = new Promise((res, rej) => { - this.resolve = res; - this.reject = rej; - }); - } -}