Skip to content

Commit

Permalink
delete commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
skykanin committed Dec 13, 2024
1 parent 83101ee commit 960d98b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
12 changes: 0 additions & 12 deletions src/services/createTeam.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { Effect } from 'effect'
import { ParseResult, Schema } from 'effect'
// import * as Http from '@effect/platform/HttpClient'
// import { HttpClientError } from '@effect/platform/Http/ClientError'
// import * as ClientResponse from '@effect/platform/HttpClientResponse'
// import { BodyError } from '@effect/platform/Http/Body'

import { FetchHttpClient, HttpClientRequest, HttpClientResponse } from '@effect/platform'
import { HttpClient } from '@effect/platform/HttpClient'
import { HttpClientError } from '@effect/platform/HttpClientError'
Expand Down Expand Up @@ -60,11 +55,4 @@ export const createTeam = (
Effect.scoped,
Effect.provide(FetchHttpClient.layer)
)
//Http.request
// .post(new URL(CREATE_TEAM_URL, window.location.origin))
// .pipe(
// Http.request.schemaBody(CreateTeamRequestSchema)(createTeamRequest),
// Effect.flatMap(Http.client.fetchOk),
// ClientResponse.schemaBodyJsonScoped(CreateTeamResponse)
// )
)
15 changes: 0 additions & 15 deletions src/services/klass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ const fetchOrgUnitVersions = (): Effect.Effect<OrgUnitVersions, HttpClientError
Effect.provide(FetchHttpClient.layer)
)

// Http.request.get(new URL(`${KLASS_URL}/classifications/83`, window.location.origin)).pipe(
// Http.request.appendUrlParam('language', 'en'),
// Http.request.appendUrlParam('includeFuture', 'true'),
// Http.client.fetchOk,
// Http.response.json,
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
// Effect.flatMap((jsonResponse: any) =>
// Either.match(Schema.decodeEither(OrgUnitVersionsSchema)(jsonResponse.versions), {
// onLeft: (error) => Effect.fail(error),
// onRight: (v: OrgUnitVersions) => Effect.succeed(v),
// })
// ),
// Effect.scoped
// )

const SSBSectionSchema = Schema.Struct({
code: Schema.NumberFromString,
parentCode: Schema.String,
Expand Down

0 comments on commit 960d98b

Please sign in to comment.