Skip to content

Commit 39bda63

Browse files
committed
Remove _invokeClient fr
1 parent b285cc0 commit 39bda63

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

packages/hub/src/hub.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -470,22 +470,6 @@ export class Hub implements HubInterface {
470470
}
471471
}
472472

473-
/**
474-
* Internal helper function to call a method on the top client if it exists.
475-
*
476-
* @param method The method to call on the client.
477-
* @param args Arguments to pass to the client function.
478-
* @deprecated
479-
*/
480-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
481-
private _invokeClient<M extends keyof Client>(method: M, ...args: any[]): void {
482-
const { scope, client } = this.getStackTop();
483-
if (client && client[method]) {
484-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
485-
(client as any)[method](...args, scope);
486-
}
487-
}
488-
489473
/**
490474
* Internal helper function to call a method on the top client if it exists.
491475
*

packages/minimal/src/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,6 @@ export function withScope(callback: (scope: Scope) => void): void {
180180
callOnHub<void>('withScope', callback);
181181
}
182182

183-
/**
184-
* Calls a function on the latest client. Use this with caution, it's meant as
185-
* in "internal" helper so we don't need to expose every possible function in
186-
* the shim. It is not guaranteed that the client actually implements the
187-
* function.
188-
*
189-
* @param method The method to call on the client/client.
190-
* @param args Arguments to pass to the client/fontend.
191-
* @hidden
192-
* @deprecated Please use {@link _withClient}
193-
*/
194-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
195-
export function _callOnClient(method: string, ...args: any[]): void {
196-
callOnHub<void>('_invokeClient', method, ...args);
197-
}
198-
199183
/** */
200184
export function _withClient(callback: (client: Client, scope: Scope | undefined) => void): void {
201185
callOnHub<void>('_withClient', callback);

0 commit comments

Comments
 (0)