diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-31 14:50:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-31 14:50:50 +0200 |
commit | 11e4090dbb2dc7e562339f7c7a5e6334a8540dfe (patch) | |
tree | 52042969b9b156dae3e1f6ac19e298e07b1c17fa /client/src/app/+about | |
parent | 698a8c65082237c2bfa2f0ceea6c32750a38e888 (diff) | |
download | PeerTube-11e4090dbb2dc7e562339f7c7a5e6334a8540dfe.tar.gz PeerTube-11e4090dbb2dc7e562339f7c7a5e6334a8540dfe.tar.zst PeerTube-11e4090dbb2dc7e562339f7c7a5e6334a8540dfe.zip |
Remove unused code
Diffstat (limited to 'client/src/app/+about')
-rw-r--r-- | client/src/app/+about/about-instance/about-instance.component.ts | 9 |
1 files changed, 0 insertions, 9 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 { | |||
42 | private lastScrollHash: string | 42 | private lastScrollHash: string |
43 | 43 | ||
44 | constructor ( | 44 | constructor ( |
45 | private customMarkupService: CustomMarkupService, | ||
46 | private viewportScroller: ViewportScroller, | 45 | private viewportScroller: ViewportScroller, |
47 | private route: ActivatedRoute, | 46 | private route: ActivatedRoute, |
48 | private notifier: Notifier, | 47 | private notifier: Notifier, |
@@ -74,8 +73,6 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
74 | 73 | ||
75 | this.html = await this.instanceService.buildHtml(about) | 74 | this.html = await this.instanceService.buildHtml(about) |
76 | 75 | ||
77 | await this.injectDescription(about) | ||
78 | |||
79 | this.initialized = true | 76 | this.initialized = true |
80 | } | 77 | } |
81 | 78 | ||
@@ -96,10 +93,4 @@ export class AboutInstanceComponent implements OnInit, AfterViewChecked { | |||
96 | copyToClipboard(link) | 93 | copyToClipboard(link) |
97 | this.notifier.success(link, $localize `Link copied`) | 94 | this.notifier.success(link, $localize `Link copied`) |
98 | } | 95 | } |
99 | |||
100 | private async injectDescription (about: About) { | ||
101 | const element = await this.customMarkupService.buildElement(about.instance.description) | ||
102 | |||
103 | this.descriptionWrapper.nativeElement.appendChild(element) | ||
104 | } | ||
105 | } | 96 | } |