Skip to content

Commit ff9ffa8

Browse files
remove git
1 parent 3637c84 commit ff9ffa8

File tree

5 files changed

+0
-136
lines changed

5 files changed

+0
-136
lines changed

src/SandboxClient/git.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/SandboxClient/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Tasks } from "./tasks";
77
import { Interpreters } from "./interpreters";
88
import { Terminals } from "./terminals";
99
import { Commands } from "./commands";
10-
import { Git } from "./git";
1110
import { HostToken } from "../HostTokens";
1211
import { Hosts } from "./hosts";
1312
import { IAgentClient } from "../node/agent-client-interface";
@@ -20,7 +19,6 @@ export * from "./setup";
2019
export * from "./tasks";
2120
export * from "./terminals";
2221
export * from "./commands";
23-
export * from "./git";
2422
export * from "./interpreters";
2523
export * from "./hosts";
2624

@@ -89,11 +87,6 @@ export class SandboxClient {
8987
*/
9088
public readonly interpreters: Interpreters;
9189

92-
/**
93-
* Namespace for Git operations in the Sandbox
94-
*/
95-
public readonly git: Git;
96-
9790
/**
9891
* Namespace for managing ports on this Sandbox
9992
*/
@@ -132,7 +125,6 @@ export class SandboxClient {
132125

133126
this.hosts = new Hosts(this.agentClient.sandboxId, hostToken);
134127
this.interpreters = new Interpreters(this.disposable, this.commands);
135-
this.git = new Git(this.agentClient, this.commands);
136128
this.disposable.onWillDispose(() => this.agentClient.dispose());
137129
}
138130

src/browser/BrowserAgentClient.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { IPitcherClient } from "@codesandbox/pitcher-client";
22
import {
33
IAgentClient,
44
IAgentClientFS,
5-
IAgentClientGit,
65
IAgentClientPorts,
76
IAgentClientSetup,
87
IAgentClientShells,
@@ -74,14 +73,6 @@ class BrowserAgentClientFS implements IAgentClientFS {
7473
}
7574
}
7675

77-
class BrowserAgentClientGit implements IAgentClientGit {
78-
onStatusUpdated = this.pitcherClient.clients.git.onStatusUpdated;
79-
getStatus() {
80-
return this.pitcherClient.clients.git.getStatus();
81-
}
82-
constructor(private pitcherClient: IPitcherClient) {}
83-
}
84-
8576
class BrowserAgentClientPorts implements IAgentClientPorts {
8677
onPortsUpdated = this.pitcherClient.clients.port.onPortsUpdated;
8778
async getPorts() {
@@ -135,7 +126,6 @@ export class BrowserAgentClient implements IAgentClient {
135126
onStateChange = this.onStateChangeEmitter.event;
136127
shells = new BrowserAgentClientShells(this.pitcherClient);
137128
fs = new BrowserAgentClientFS(this.pitcherClient);
138-
git = new BrowserAgentClientGit(this.pitcherClient);
139129
ports = new BrowserAgentClientPorts(this.pitcherClient);
140130
setup = new BrowserAgentClientSetup(this.pitcherClient);
141131
tasks = new BrowserAgentClientTasks(this.pitcherClient);

src/node/AgentClient.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import {
1212
IAgentClient,
1313
IAgentClientFS,
14-
IAgentClientGit,
1514
IAgentClientPorts,
1615
IAgentClientSetup,
1716
IAgentClientShells,
@@ -285,24 +284,6 @@ class NodeAgentClientFS implements IAgentClientFS {
285284
}
286285
}
287286

288-
class NodeAgentClientGit implements IAgentClientGit {
289-
private onStatusUpdatedEmitter = new Emitter<git.GitStatus>();
290-
onStatusUpdated = this.onStatusUpdatedEmitter.event;
291-
292-
constructor(private agentConnection: AgentConnection) {
293-
agentConnection.onNotification("git/status", (params) => {
294-
this.onStatusUpdatedEmitter.fire(params);
295-
});
296-
}
297-
298-
getStatus() {
299-
return this.agentConnection.request({
300-
method: "git/status",
301-
params: {},
302-
});
303-
}
304-
}
305-
306287
class NodeAgentClientPorts implements IAgentClientPorts {
307288
private onPortsUpdatedEmitter = new Emitter<port.Port[]>();
308289
onPortsUpdated = this.onPortsUpdatedEmitter.event;
@@ -405,7 +386,6 @@ export class NodeAgentClient implements IAgentClient {
405386
onStateChange = this.agentConnection.onStateChange;
406387
shells = new NodeAgentClientShells(this.agentConnection);
407388
fs = new NodeAgentClientFS(this.agentConnection, this.params.workspacePath);
408-
git = new NodeAgentClientGit(this.agentConnection);
409389
setup = new NodeAgentClientSetup(this.agentConnection);
410390
tasks = new NodeAgentClientTasks(this.agentConnection);
411391
system = new NodeAgentClientSystem(this.agentConnection);

src/node/agent-client-interface.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ export interface IAgentClientFS {
9696
download(path?: string): Promise<{ downloadUrl: string }>;
9797
}
9898

99-
export interface IAgentClientGit {
100-
onStatusUpdated: Event<git.GitStatus>;
101-
getStatus(): Promise<git.GitStatus>;
102-
}
103-
10499
export interface IAgentClientPorts {
105100
onPortsUpdated: Event<port.Port[]>;
106101
getPorts(): Promise<port.Port[]>;
@@ -139,7 +134,6 @@ export interface IAgentClient {
139134
onStateChange: Event<IAgentClientState>;
140135
shells: IAgentClientShells;
141136
fs: IAgentClientFS;
142-
git: IAgentClientGit;
143137
ports: IAgentClientPorts;
144138
setup: IAgentClientSetup;
145139
tasks: IAgentClientTasks;

0 commit comments

Comments
 (0)