From eb7a944532ba9b99e890d9fa1c45787dcbec33a0 Mon Sep 17 00:00:00 2001 From: jonasongg <120372506+jonasongg@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:45:04 +0800 Subject: [PATCH] [#2004] Remove redundant Segment class (#2085) Remove Segment class, replace with AuthorshipFileSegment The Segment class and AuthorshipFileSegment 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 Segment class for consistency and to improve runtime performance. --- frontend/src/components/c-segment-collection.vue | 4 ++-- frontend/src/components/c-segment.vue | 6 +++--- frontend/src/utils/segment.ts | 13 ------------- frontend/src/views/c-authorship.vue | 15 +++++++-------- 4 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 frontend/src/utils/segment.ts diff --git a/frontend/src/components/c-segment-collection.vue b/frontend/src/components/c-segment-collection.vue index e305083a31..591dbb247d 100644 --- a/frontend/src/components/c-segment-collection.vue +++ b/frontend/src/components/c-segment-collection.vue @@ -7,7 +7,7 @@