From 11e4090dbb2dc7e562339f7c7a5e6334a8540dfe Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 May 2021 14:50:50 +0200 Subject: Remove unused code --- client/src/app/+about/about-instance/about-instance.component.ts | 9 --------- client/src/app/shared/shared-instance/shared-instance.module.ts | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts index 2e0996429..5627aaa5a 100644 --- a/client/src/app/+about/about-instance/about-instance.component.ts +++ b/client/src/app/+about/about-instance/about-instance.component.ts @@ -42,7 +42,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { private lastScrollHash: string constructor ( - private customMarkupService: CustomMarkupService, private viewportScroller: ViewportScroller, private route: ActivatedRoute, private notifier: Notifier, @@ -74,8 +73,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { this.html = await this.instanceService.buildHtml(about) - await this.injectDescription(about) - this.initialized = true } @@ -96,10 +93,4 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { copyToClipboard(link) this.notifier.success(link, $localize `Link copied`) } - - private async injectDescription (about: About) { - const element = await this.customMarkupService.buildElement(about.instance.description) - - this.descriptionWrapper.nativeElement.appendChild(element) - } } diff --git a/client/src/app/shared/shared-instance/shared-instance.module.ts b/client/src/app/shared/shared-instance/shared-instance.module.ts index 77a64b538..5efb95a7d 100644 --- a/client/src/app/shared/shared-instance/shared-instance.module.ts +++ b/client/src/app/shared/shared-instance/shared-instance.module.ts @@ -13,8 +13,7 @@ import { InstanceService } from './instance.service' @NgModule({ imports: [ SharedMainModule, - NgbAccordionModule, - SharedCustomMarkupModule + NgbAccordionModule ], declarations: [ -- cgit v1.2.3