Skip to content

Commit fd8583a

Browse files
committed
Remove Legacy
1 parent b0d0c84 commit fd8583a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/lib/seam/connect/client.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
type SeamHttpOptionsWithClient,
1212
type SeamHttpOptionsWithClientSessionToken,
1313
} from './client-options.js'
14-
import { SeamHttpLegacyWorkspaces } from './legacy/workspaces.js'
1514
import { parseOptions } from './parse-options.js'
1615
import {
1716
SeamHttpAccessCodes,
@@ -32,11 +31,11 @@ import {
3231
export class SeamHttp {
3332
client: Axios
3433

35-
#legacy: boolean
34+
// #legacy: boolean
3635

3736
constructor(apiKeyOrOptions: string | SeamHttpOptions) {
3837
const options = parseOptions(apiKeyOrOptions)
39-
this.#legacy = options.enableLegacyMethodBehaivor
38+
// this.#legacy = options.enableLegacyMethodBehaivor
4039
this.client = createAxiosClient(options)
4140
}
4241

@@ -125,9 +124,6 @@ export class SeamHttp {
125124
}
126125

127126
get workspaces(): SeamHttpWorkspaces {
128-
if (this.#legacy) {
129-
return SeamHttpLegacyWorkspaces.fromClient(this.client)
130-
}
131127
return SeamHttpWorkspaces.fromClient(this.client)
132128
}
133129
}

0 commit comments

Comments
 (0)