Remove unused code
This commit is contained in:
parent
698a8c6508
commit
11e4090dbb
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,7 @@ import { InstanceService } from './instance.service'
|
|||
@NgModule({
|
||||
imports: [
|
||||
SharedMainModule,
|
||||
NgbAccordionModule,
|
||||
SharedCustomMarkupModule
|
||||
NgbAccordionModule
|
||||
],
|
||||
|
||||
declarations: [
|
||||
|
|
Loading…
Reference in New Issue