Skip to content

Commit

Permalink
Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Jul 1, 2023
1 parent 6322755 commit 240ca52
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/HttpController/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Movary\Service\Email\EmailService;
use Movary\Service\Email\SmtpConfig;
use Movary\Service\Letterboxd\LetterboxdExporter;
use Movary\Service\Plex\PlexWatchlistImporter;
use Movary\Service\ServerSettings;
use Movary\Service\WebhookUrlBuilder;
use Movary\Util\Json;
Expand Down Expand Up @@ -46,7 +45,6 @@ public function __construct(
private readonly JobQueueApi $jobQueueApi,
private readonly DashboardFactory $dashboardFactory,
private readonly EmailService $emailService,
private readonly PlexWatchlistImporter $plexWatchlistImporter,
private readonly string $currentApplicationVersion,
) {
}
Expand Down Expand Up @@ -685,19 +683,6 @@ public function updatePassword(Request $request) : Response
return Response::create(StatusCode::createOk());
}

public function updatePlexImportWatchlist() : Response
{
if ($this->authenticationService->isUserAuthenticated() === false) {
return Response::createSeeOther('/');
}

$userId = $this->authenticationService->getCurrentUserId();

$this->plexWatchlistImporter->importPlexWatchlist($userId);

return Response::create(StatusCode::createNoContent());
}

public function updatePlex(Request $request) : Response
{
if ($this->authenticationService->isUserAuthenticated() === false) {
Expand Down

0 comments on commit 240ca52

Please sign in to comment.