diff options
author | BO41 <lukasw41@gmail.com> | 2018-09-22 20:11:16 +0200 |
---|---|---|
committer | BO41 <lukasw41@gmail.com> | 2018-09-22 20:11:16 +0200 |
commit | 23db998f07d674c621972a769df73203b14e093a (patch) | |
tree | 6ecb88dc98bdbe69e113e4841d05aec34d6d0491 /client/src/app/+admin/follows/shared | |
parent | 9fe4406794aaa4503d090ca4bfe6872b4e556178 (diff) | |
download | PeerTube-23db998f07d674c621972a769df73203b14e093a.tar.gz PeerTube-23db998f07d674c621972a769df73203b14e093a.tar.zst PeerTube-23db998f07d674c621972a769df73203b14e093a.zip |
remove unused imports
Diffstat (limited to 'client/src/app/+admin/follows/shared')
-rw-r--r-- | client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts | 6 | ||||
-rw-r--r-- | client/src/app/+admin/follows/shared/redundancy.service.ts | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts b/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts index ff4725e91..6d77a0eb4 100644 --- a/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts +++ b/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts | |||
@@ -1,7 +1,4 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { AuthService } from '@app/core' | ||
3 | import { RestExtractor } from '@app/shared/rest' | ||
4 | import { RedirectService } from '@app/core/routing/redirect.service' | ||
5 | import { NotificationsService } from 'angular2-notifications' | 2 | import { NotificationsService } from 'angular2-notifications' |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
7 | import { RedundancyService } from '@app/+admin/follows/shared/redundancy.service' | 4 | import { RedundancyService } from '@app/+admin/follows/shared/redundancy.service' |
@@ -16,9 +13,6 @@ export class RedundancyCheckboxComponent { | |||
16 | @Input() host: string | 13 | @Input() host: string |
17 | 14 | ||
18 | constructor ( | 15 | constructor ( |
19 | private authService: AuthService, | ||
20 | private restExtractor: RestExtractor, | ||
21 | private redirectService: RedirectService, | ||
22 | private notificationsService: NotificationsService, | 16 | private notificationsService: NotificationsService, |
23 | private redundancyService: RedundancyService, | 17 | private redundancyService: RedundancyService, |
24 | private i18n: I18n | 18 | private i18n: I18n |
diff --git a/client/src/app/+admin/follows/shared/redundancy.service.ts b/client/src/app/+admin/follows/shared/redundancy.service.ts index 96b29faab..87ae01c04 100644 --- a/client/src/app/+admin/follows/shared/redundancy.service.ts +++ b/client/src/app/+admin/follows/shared/redundancy.service.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { catchError, map } from 'rxjs/operators' | 1 | import { catchError, map } from 'rxjs/operators' |
2 | import { HttpClient } from '@angular/common/http' | 2 | import { HttpClient } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { RestExtractor, RestService } from '@app/shared' | 4 | import { RestExtractor } from '@app/shared' |
5 | import { environment } from '../../../../environments/environment' | 5 | import { environment } from '../../../../environments/environment' |
6 | 6 | ||
7 | @Injectable() | 7 | @Injectable() |
@@ -10,8 +10,7 @@ export class RedundancyService { | |||
10 | 10 | ||
11 | constructor ( | 11 | constructor ( |
12 | private authHttp: HttpClient, | 12 | private authHttp: HttpClient, |
13 | private restExtractor: RestExtractor, | 13 | private restExtractor: RestExtractor |
14 | private restService: RestService | ||
15 | ) { } | 14 | ) { } |
16 | 15 | ||
17 | updateRedundancy (host: string, redundancyAllowed: boolean) { | 16 | updateRedundancy (host: string, redundancyAllowed: boolean) { |