Skip to content

Commit 50955a4

Browse files
authored
Remove unused code (#209)
* Remove unused code * Update snapshots
1 parent 1e9372e commit 50955a4

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

packages/xeus/src/interfaces.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ export interface IXeusWorkerKernel extends IWorkerKernel {
4242
*/
4343
processWorkerMessage(msg: any): void;
4444

45-
/**
46-
* Register a callback for handling messages from the worker.
47-
*/
48-
registerCallback(callback: (msg: any) => void): void;
49-
5045
/**
5146
* Whether the kernel is ready.
5247
* @returns a promise that resolves when the kernel is ready.

packages/xeus/src/worker.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,7 @@ export class XeusRemoteKernel {
232232
kernelReady(1);
233233
}
234234

235-
/**
236-
* Register the callback function to send messages from the worker back to the main thread.
237-
* @param callback the callback to register
238-
*/
239-
registerCallback(callback: (msg: any) => void): void {
240-
this._sendWorkerMessage = callback;
241-
}
242-
243235
private _logger: XeusWorkerLogger;
244-
protected _sendWorkerMessage: (msg: any) => void = () => {};
245236
}
246237

247238
export namespace XeusRemoteKernel {
-760 Bytes
Loading
-760 Bytes
Loading

0 commit comments

Comments
 (0)