From 648180650112fe78e6b49cc7974e86590b9e7282 Mon Sep 17 00:00:00 2001 From: jonasongg <120372506+jonasongg@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:36:20 +0800 Subject: [PATCH] [#1973] Remove redundant User class (#2093) Remove utils/user.ts, replace with User interface from types.ts The User class and interface are equivalent in their usage and their redundancy seems to be a remnant when the code was migrated from JS to TS. Let's remove the User class for consistency and to improve runtime performance. --- frontend/src/components/c-ramp.vue | 7 +++--- frontend/src/types/vuex.d.ts | 3 +-- frontend/src/types/window.ts | 7 +++--- frontend/src/utils/api.ts | 7 +++--- frontend/src/utils/user.ts | 40 ------------------------------ frontend/src/views/c-zoom.vue | 4 +-- 6 files changed, 12 insertions(+), 56 deletions(-) delete mode 100644 frontend/src/utils/user.ts diff --git a/frontend/src/components/c-ramp.vue b/frontend/src/components/c-ramp.vue index 7440e6d2e1..6367fc7932 100644 --- a/frontend/src/components/c-ramp.vue +++ b/frontend/src/components/c-ramp.vue @@ -35,10 +35,9 @@