Skip to content

Commit

Permalink
Remove writeUtf8 deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jul 27, 2022
1 parent 71911b5 commit 8c16d9d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions src/browser/TestUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ export class MockTerminal implements ITerminal {
public write(data: string): void {
throw new Error('Method not implemented.');
}
public writeUtf8(data: Uint8Array): void {
throw new Error('Method not implemented.');
}
public bracketedPasteMode!: boolean;
public renderer!: IRenderer;
public linkifier2!: ILinkifier2;
Expand Down
3 changes: 0 additions & 3 deletions src/browser/public/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ export class Terminal implements ITerminalApi {
public write(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data, callback);
}
public writeUtf8(data: Uint8Array, callback?: () => void): void {
this._core.write(data, callback);
}
public writeln(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data);
this._core.write('\r\n', callback);
Expand Down
3 changes: 0 additions & 3 deletions src/headless/public/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ export class Terminal implements ITerminalApi {
public write(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data, callback);
}
public writeUtf8(data: Uint8Array, callback?: () => void): void {
this._core.write(data, callback);
}
public writeln(data: string | Uint8Array, callback?: () => void): void {
this._core.write(data);
this._core.write('\r\n', callback);
Expand Down
8 changes: 0 additions & 8 deletions typings/xterm-headless.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,14 +689,6 @@ declare module 'xterm-headless' {
*/
writeln(data: string | Uint8Array, callback?: () => void): void;

/**
* Write UTF8 data to the terminal.
* @param data The data to write to the terminal.
* @param callback Optional callback when data was processed.
* @deprecated use `write` instead
*/
writeUtf8(data: Uint8Array, callback?: () => void): void;

/**
* Perform a full reset (RIS, aka '\x1bc').
*/
Expand Down
8 changes: 0 additions & 8 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,14 +1021,6 @@ declare module 'xterm' {
*/
writeln(data: string | Uint8Array, callback?: () => void): void;

/**
* Write UTF8 data to the terminal.
* @param data The data to write to the terminal.
* @param callback Optional callback when data was processed.
* @deprecated use `write` instead
*/
writeUtf8(data: Uint8Array, callback?: () => void): void;

/**
* Writes text to the terminal, performing the necessary transformations for pasted text.
* @param data The text to write to the terminal.
Expand Down

0 comments on commit 8c16d9d

Please sign in to comment.