diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-24 10:40:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 10:40:38 +0200 |
commit | 6937f26a5e8b17c7a27f267bce2682ab01611f2f (patch) | |
tree | 5d9b160e257a2bd116e67c9363b798f422ead44c /client/src/app/videos | |
parent | 01448622992b12318a2fff508e501732b59dd6be (diff) | |
parent | 0b4e5fe32708afce54212810738aa4d0c3dc178d (diff) | |
download | PeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.tar.gz PeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.tar.zst PeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.zip |
Merge pull request #1105 from BO41/unused-imports
remove unused imports
Diffstat (limited to 'client/src/app/videos')
4 files changed, 4 insertions, 13 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts index 75b11f46c..856e61530 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts | |||
@@ -5,11 +5,9 @@ import { LoadingBarService } from '@ngx-loading-bar/core' | |||
5 | import { NotificationsService } from 'angular2-notifications' | 5 | import { NotificationsService } from 'angular2-notifications' |
6 | import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos' | 6 | import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos' |
7 | import { ServerService } from '../../core' | 7 | import { ServerService } from '../../core' |
8 | import { AuthService } from '../../core/auth' | ||
9 | import { FormReactive } from '../../shared' | 8 | import { FormReactive } from '../../shared' |
10 | import { VideoEdit } from '../../shared/video/video-edit.model' | 9 | import { VideoEdit } from '../../shared/video/video-edit.model' |
11 | import { VideoService } from '../../shared/video/video.service' | 10 | import { VideoService } from '../../shared/video/video.service' |
12 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | ||
13 | import { I18n } from '@ngx-translate/i18n-polyfill' | 11 | import { I18n } from '@ngx-translate/i18n-polyfill' |
14 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 12 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
15 | import { VideoCaptionService } from '@app/shared/video-caption' | 13 | import { VideoCaptionService } from '@app/shared/video-caption' |
@@ -38,9 +36,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { | |||
38 | private notificationsService: NotificationsService, | 36 | private notificationsService: NotificationsService, |
39 | private serverService: ServerService, | 37 | private serverService: ServerService, |
40 | private videoService: VideoService, | 38 | private videoService: VideoService, |
41 | private authService: AuthService, | ||
42 | private loadingBar: LoadingBarService, | 39 | private loadingBar: LoadingBarService, |
43 | private videoChannelService: VideoChannelService, | ||
44 | private videoCaptionService: VideoCaptionService, | 40 | private videoCaptionService: VideoCaptionService, |
45 | private i18n: I18n | 41 | private i18n: I18n |
46 | ) { | 42 | ) { |
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index 71d6f5633..17e2b31e1 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts | |||
@@ -25,9 +25,7 @@ export class VideoShareComponent { | |||
25 | private modalService: NgbModal, | 25 | private modalService: NgbModal, |
26 | private notificationsService: NotificationsService, | 26 | private notificationsService: NotificationsService, |
27 | private i18n: I18n | 27 | private i18n: I18n |
28 | ) { | 28 | ) { } |
29 | // empty | ||
30 | } | ||
31 | 29 | ||
32 | show (currentVideoTimestamp?: number) { | 30 | show (currentVideoTimestamp?: number) { |
33 | this.currentVideoTimestamp = Math.floor(currentVideoTimestamp) | 31 | this.currentVideoTimestamp = Math.floor(currentVideoTimestamp) |
diff --git a/client/src/app/videos/+video-watch/modal/video-support.component.ts b/client/src/app/videos/+video-watch/modal/video-support.component.ts index 2d400e0be..154002120 100644 --- a/client/src/app/videos/+video-watch/modal/video-support.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-support.component.ts | |||
@@ -19,9 +19,7 @@ export class VideoSupportComponent { | |||
19 | constructor ( | 19 | constructor ( |
20 | private markdownService: MarkdownService, | 20 | private markdownService: MarkdownService, |
21 | private modalService: NgbModal | 21 | private modalService: NgbModal |
22 | ) { | 22 | ) { } |
23 | // empty | ||
24 | } | ||
25 | 23 | ||
26 | show () { | 24 | show () { |
27 | this.videoHTMLSupport = this.markdownService.enhancedMarkdownToHTML(this.video.support) | 25 | this.videoHTMLSupport = this.markdownService.enhancedMarkdownToHTML(this.video.support) |
diff --git a/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts b/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts index 0ee34b9cb..59acf17bc 100644 --- a/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts +++ b/client/src/app/videos/recommendations/recent-videos-recommendation.service.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { Inject, Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { RecommendationService } from '@app/videos/recommendations/recommendations.service' | 2 | import { RecommendationService } from '@app/videos/recommendations/recommendations.service' |
3 | import { Video } from '@app/shared/video/video.model' | 3 | import { Video } from '@app/shared/video/video.model' |
4 | import { RecommendationInfo } from '@app/shared/video/recommendation-info.model' | 4 | import { RecommendationInfo } from '@app/shared/video/recommendation-info.model' |
@@ -19,8 +19,7 @@ export class RecentVideosRecommendationService implements RecommendationService | |||
19 | constructor ( | 19 | constructor ( |
20 | private videos: VideoService, | 20 | private videos: VideoService, |
21 | private searchService: SearchService | 21 | private searchService: SearchService |
22 | ) { | 22 | ) { } |
23 | } | ||
24 | 23 | ||
25 | getRecommendations (recommendation: RecommendationInfo): Observable<Video[]> { | 24 | getRecommendations (recommendation: RecommendationInfo): Observable<Video[]> { |
26 | return this.fetchPage(1, recommendation) | 25 | return this.fetchPage(1, recommendation) |