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 --------- 1 file changed, 9 deletions(-) (limited to 'client/src/app/+about/about-instance') 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) - } } -- cgit v1.2.3