Skip to content

Commit fe438d7

Browse files
committed
Remove unused functions: don't expose random stuff
1 parent c64cd3a commit fe438d7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

webapp/src/Service/DOMJudgeService.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ public function __construct(
100100
protected string $vendorDir,
101101
) {}
102102

103-
public function getEntityManager(): EntityManagerInterface
104-
{
105-
return $this->em;
106-
}
107-
108103
/**
109104
* Return all the contests that are currently active indexed by contest ID.
110105
*
@@ -454,11 +449,6 @@ public function getUpdates(): array
454449
];
455450
}
456451

457-
public function getHttpKernel(): HttpKernelInterface
458-
{
459-
return $this->httpKernel;
460-
}
461-
462452
/**
463453
* Run the given callable with all roles.
464454
*
@@ -654,7 +644,7 @@ public function internalApiRequest(string $url, string $method = Request::METHOD
654644
if ($this->requestStack->getCurrentRequest() && $this->requestStack->getCurrentRequest()->hasSession()) {
655645
$request->setSession($this->requestStack->getSession());
656646
}
657-
$response = $this->getHttpKernel()->handle($request, HttpKernelInterface::SUB_REQUEST);
647+
$response = $this->httpKernel->handle($request, HttpKernelInterface::SUB_REQUEST);
658648

659649
$status = $response->getStatusCode();
660650
if ($status < 200 || $status >= 300) {

0 commit comments

Comments
 (0)