Skip to content

Commit d8aec33

Browse files
committed
Remove some unused terminal code
Part of #38414
1 parent b2287c5 commit d8aec33

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/vs/workbench/parts/terminal/common/terminal.ts

-10
Original file line numberDiff line numberDiff line change
@@ -349,16 +349,6 @@ export interface ITerminalInstance {
349349
*/
350350
setVisible(visible: boolean): void;
351351

352-
/**
353-
* Attach a listener to the data stream from the terminal's pty process.
354-
*
355-
* @param listener The listener function which takes the processes' data stream (including
356-
* ANSI escape sequences).
357-
*
358-
* @deprecated onLineData will replace this.
359-
*/
360-
onData(listener: (data: string) => void): IDisposable;
361-
362352
/**
363353
* Attach a listener to listen for new lines added to this terminal instance.
364354
*

src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts

-16
Original file line numberDiff line numberDiff line change
@@ -823,22 +823,6 @@ export class TerminalInstance implements ITerminalInstance {
823823
return env;
824824
}
825825

826-
public onData(listener: (data: string) => void): lifecycle.IDisposable {
827-
let callback = (message) => {
828-
if (message.type === 'data') {
829-
listener(message.content);
830-
}
831-
};
832-
this._process.on('message', callback);
833-
return {
834-
dispose: () => {
835-
if (this._process) {
836-
this._process.removeListener('message', callback);
837-
}
838-
}
839-
};
840-
}
841-
842826
public onLineData(listener: (lineData: string) => void): lifecycle.IDisposable {
843827
this._onLineDataListeners.push(listener);
844828
return {

0 commit comments

Comments
 (0)