clean code

This commit is contained in:
Chneemann 2024-08-31 19:03:21 +02:00
parent 8d3d925a6d
commit f129f068e0
4 changed files with 1 additions and 6 deletions

View file

@ -27,8 +27,7 @@ export class RegisterComponent implements OnInit {
constructor(
private route: ActivatedRoute,
public authService: AuthService,
public errorService: ErrorService,
private router: Router
public errorService: ErrorService
) {}
ngOnInit(): void {

View file

@ -2,7 +2,6 @@ import { Component, OnInit, ViewChild } from '@angular/core';
import { HeaderComponent } from '../../../shared/components/header/header.component';
import { HeroBannerComponent } from './hero-banner/hero-banner.component';
import { CategoriesComponent } from './categories/categories.component';
import { AuthService } from '../../../services/auth.service';
import { MovieService } from '../../../services/movie.service';
import { CommonModule } from '@angular/common';
import { VideoPlayerComponent } from './video-player/video-player.component';
@ -41,7 +40,6 @@ export class BrowseComponent implements OnInit {
};
constructor(
private authService: AuthService,
private movieService: MovieService,
public userService: UserService
) {}

View file

@ -40,7 +40,6 @@ export class HeroBannerComponent implements OnChanges {
'1080': false,
};
constructor(
private el: ElementRef,
private movieService: MovieService,
public userService: UserService
) {}

View file

@ -62,7 +62,6 @@ export class VideoPlayerComponent implements OnInit, OnDestroy {
}
}
// Method to switch resolution
public switchResolution(resolution: '360p' | '720p' | '1080p') {
if (this.resolutionUrls[resolution]) {
if (this.hls) {