From e9df173aef63ebc07f121d3530ccfafef87618fe Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Fri, 23 Jun 2023 11:02:08 +0200 Subject: [PATCH] removed dead code --- frontend/package.json | 1 - frontend/src/lib/events.ts | 10 ---------- frontend/src/lib/httpClient.ts | 8 -------- 3 files changed, 19 deletions(-) delete mode 100644 frontend/src/lib/events.ts diff --git a/frontend/package.json b/frontend/package.json index a6f06c7..48cea88 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,7 +14,6 @@ "@mui/icons-material": "^5.11.16", "@mui/material": "^5.13.2", "@reduxjs/toolkit": "^1.9.5", - "fp-ts": "^2.16.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-redux": "^8.0.5", diff --git a/frontend/src/lib/events.ts b/frontend/src/lib/events.ts deleted file mode 100644 index 9b5ee33..0000000 --- a/frontend/src/lib/events.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function on(eventType: string, listener: any) { - document.addEventListener(eventType, listener) -} - -export const serverStates = { - PROC_DOWNLOAD: 'download', - PROC_MERGING: 'merging', - PROC_ABORT: 'abort', - PROG_DONE: 'status_done', -} \ No newline at end of file diff --git a/frontend/src/lib/httpClient.ts b/frontend/src/lib/httpClient.ts index 3d1ee55..cd981ad 100644 --- a/frontend/src/lib/httpClient.ts +++ b/frontend/src/lib/httpClient.ts @@ -1,11 +1,3 @@ -import * as E from 'fp-ts/Either' -import { pipe } from 'fp-ts/function' - -type FetchInit = { - url: string, - opt?: RequestInit -} - export async function ffetch( url: string, onSuccess: (res: T) => void,