From 23db998f07d674c621972a769df73203b14e093a Mon Sep 17 00:00:00 2001 From: BO41 Date: Sat, 22 Sep 2018 20:11:16 +0200 Subject: remove unused imports --- client/src/app/videos/+video-edit/video-update.component.ts | 4 ---- client/src/app/videos/+video-watch/modal/video-download.component.ts | 4 +--- client/src/app/videos/+video-watch/modal/video-share.component.ts | 4 +--- client/src/app/videos/+video-watch/modal/video-support.component.ts | 4 +--- .../videos/recommendations/recent-videos-recommendation.service.ts | 5 ++--- 5 files changed, 5 insertions(+), 16 deletions(-) (limited to 'client/src/app/videos') 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' import { NotificationsService } from 'angular2-notifications' import { VideoConstant, VideoPrivacy } from '../../../../../shared/models/videos' import { ServerService } from '../../core' -import { AuthService } from '../../core/auth' import { FormReactive } from '../../shared' import { VideoEdit } from '../../shared/video/video-edit.model' import { VideoService } from '../../shared/video/video.service' -import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' import { I18n } from '@ngx-translate/i18n-polyfill' import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' import { VideoCaptionService } from '@app/shared/video-caption' @@ -38,9 +36,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { private notificationsService: NotificationsService, private serverService: ServerService, private videoService: VideoService, - private authService: AuthService, private loadingBar: LoadingBarService, - private videoChannelService: VideoChannelService, private videoCaptionService: VideoCaptionService, private i18n: I18n ) { diff --git a/client/src/app/videos/+video-watch/modal/video-download.component.ts b/client/src/app/videos/+video-watch/modal/video-download.component.ts index 1361146dd..f4d9003ee 100644 --- a/client/src/app/videos/+video-watch/modal/video-download.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-download.component.ts @@ -15,9 +15,7 @@ export class VideoDownloadComponent implements OnInit { downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent' resolutionId: number | string = -1 - constructor (private modalService: NgbModal) { - // empty - } + constructor (private modalService: NgbModal) { } ngOnInit () { this.resolutionId = this.video.files[0].resolution.id 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 { private modalService: NgbModal, private notificationsService: NotificationsService, private i18n: I18n - ) { - // empty - } + ) { } show (currentVideoTimestamp?: number) { 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 { constructor ( private markdownService: MarkdownService, private modalService: NgbModal - ) { - // empty - } + ) { } show () { 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 @@ -import { Inject, Injectable } from '@angular/core' +import { Injectable } from '@angular/core' import { RecommendationService } from '@app/videos/recommendations/recommendations.service' import { Video } from '@app/shared/video/video.model' import { RecommendationInfo } from '@app/shared/video/recommendation-info.model' @@ -19,8 +19,7 @@ export class RecentVideosRecommendationService implements RecommendationService constructor ( private videos: VideoService, private searchService: SearchService - ) { - } + ) { } getRecommendations (recommendation: RecommendationInfo): Observable { return this.fetchPage(1, recommendation) -- cgit v1.2.3