Remove unused code

pull/4141/head
Chocobozzz 2021-05-31 14:50:50 +02:00
parent 698a8c6508
commit 11e4090dbb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 1 additions and 11 deletions

View File

@ -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)
}
}

View File

@ -13,8 +13,7 @@ import { InstanceService } from './instance.service'
@NgModule({
imports: [
SharedMainModule,
NgbAccordionModule,
SharedCustomMarkupModule
NgbAccordionModule
],
declarations: [