From f1d6bf82aa39da8f4290410d6463b9fe2c77f5ed Mon Sep 17 00:00:00 2001 From: AnthonyFuller <24512050+AnthonyFuller@users.noreply.github.com> Date: Thu, 14 Sep 2023 20:01:31 +0100 Subject: [PATCH] Remove deprecated call function for async hooks --- components/hooksImpl.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/components/hooksImpl.ts b/components/hooksImpl.ts index 6063bd69..644ade90 100644 --- a/components/hooksImpl.ts +++ b/components/hooksImpl.ts @@ -232,17 +232,6 @@ export class AsyncSeriesHook extends BaseImpl> { this._intercepts = [] } - /** - * Async hooks cannot be called from a sync function - use {@link callAsync} instead! - * This function will only throw an error. - * - * @throws {Error} Always throws an error, see the note above. - * @deprecated - */ - public call(): Promise { - throw new Error("Can't call an async hook with the sync method.") - } - public async callAsync(...params: AsArray): Promise { const context = {}