mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
cleanup: remove unused stream property from Terminal
@cte reported that the stream property is not used anywhere in the codebase. The stream is passed directly to the process via event emitter and does not need to be stored. Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
This commit is contained in:
parent
5de0133929
commit
1601401888
1 changed files with 0 additions and 10 deletions
|
|
@ -6,7 +6,6 @@ export class Terminal {
|
|||
public terminal: vscode.Terminal
|
||||
public busy: boolean
|
||||
public id: number
|
||||
private stream?: AsyncIterable<string>
|
||||
public running: boolean
|
||||
private streamClosed: boolean
|
||||
public process?: TerminalProcess
|
||||
|
|
@ -40,13 +39,6 @@ export class Terminal {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the terminal's stream
|
||||
*/
|
||||
public getStream(): AsyncIterable<string> | undefined {
|
||||
return this.stream
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the stream is closed
|
||||
*/
|
||||
|
|
@ -60,8 +52,6 @@ export class Terminal {
|
|||
* @throws Error if process is undefined when a stream is provided
|
||||
*/
|
||||
public setActiveStream(stream: AsyncIterable<string> | undefined): void {
|
||||
this.stream = stream
|
||||
|
||||
if (stream) {
|
||||
// New stream is available
|
||||
if (!this.process) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue