From 3d8dc44d68828e9e3c37211893b41ca43c65ee80 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 23 May 2026 15:50:10 +0700 Subject: [PATCH] fix(client): remove dead code --- .../app/components/home-overview/home-overview.component.ts | 5 ----- .../src/app/components/home-overview/home-overview.html | 2 -- .../portfolio-performance.component.html | 4 ---- .../portfolio-performance/portfolio-performance.component.ts | 2 -- 4 files changed, 13 deletions(-) diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index f056fa55b..4f872d4f7 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -21,7 +21,6 @@ import { DataService } from '@ghostfolio/ui/services'; import { ChangeDetectorRef, Component, - CUSTOM_ELEMENTS_SCHEMA, DestroyRef, inject, OnInit @@ -38,7 +37,6 @@ import { DeviceDetectorService } from 'ngx-device-detector'; MatButtonModule, RouterModule ], - schemas: [CUSTOM_ELEMENTS_SCHEMA], selector: 'gf-home-overview', styleUrls: ['./home-overview.scss'], templateUrl: './home-overview.html' @@ -46,12 +44,9 @@ import { DeviceDetectorService } from 'ngx-device-detector'; export class GfHomeOverviewComponent implements OnInit { protected deviceType: string; protected errors: AssetProfileIdentifier[]; - protected hasError: boolean; protected hasImpersonationId: boolean; protected hasPermissionToCreateActivity: boolean; protected historicalDataItems: LineChartItem[] | null; - protected isAllTimeHigh: boolean; - protected isAllTimeLow: boolean; protected isLoadingPerformance = true; protected performance: PortfolioPerformance; protected performanceLabel = $localize`Performance`; diff --git a/apps/client/src/app/components/home-overview/home-overview.html b/apps/client/src/app/components/home-overview/home-overview.html index b3b957d72..7c740f7e1 100644 --- a/apps/client/src/app/components/home-overview/home-overview.html +++ b/apps/client/src/app/components/home-overview/home-overview.html @@ -88,8 +88,6 @@ class="pb-4" [deviceType]="deviceType" [errors]="errors" - [isAllTimeHigh]="isAllTimeHigh" - [isAllTimeLow]="isAllTimeLow" [isLoading]="isLoadingPerformance" [locale]="user?.settings?.locale" [performance]="performance" diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html index 9db996fbf..e8bcfea0e 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html @@ -24,10 +24,6 @@ }
diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index dd3ce248e..56e75ec1e 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -35,8 +35,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; export class GfPortfolioPerformanceComponent implements OnChanges { @Input() deviceType: string; @Input() errors: ResponseError['errors']; - @Input() isAllTimeHigh: boolean; - @Input() isAllTimeLow: boolean; @Input() isLoading: boolean; @Input() locale = getLocale(); @Input() performance: PortfolioPerformance;