From c2fa11dd98444dd277852d87f07c5ac745b53e97 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 17 May 2025 21:28:34 -0700 Subject: [PATCH] remove unused ControlPlaneClient methods --- core/control-plane/client.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/core/control-plane/client.ts b/core/control-plane/client.ts index 77a3dc108..9fab604d4 100644 --- a/core/control-plane/client.ts +++ b/core/control-plane/client.ts @@ -99,22 +99,6 @@ export class ControlPlaneClient { return resp; } - public async listWorkspaces(): Promise { - const userId = await this.userId; - if (!userId) { - return []; - } - - try { - const resp = await this.request("workspaces", { - method: "GET", - }); - return (await resp.json()) as any; - } catch (e) { - return []; - } - } - public async listAssistants(organizationId: string | null): Promise< { configResult: ConfigResult; @@ -183,16 +167,4 @@ export class ControlPlaneClient { return null; } } - - async getSettingsForWorkspace(workspaceId: string): Promise { - const userId = await this.userId; - if (!userId) { - throw new Error("No user id"); - } - - const resp = await this.request(`workspaces/${workspaceId}`, { - method: "GET", - }); - return ((await resp.json()) as any).settings; - } }