Refactoring.

Removed unnecessary methods.
This commit is contained in:
2024-04-18 21:46:22 +05:00
parent 24e0cf0eea
commit 05fabd7650
2 changed files with 0 additions and 28 deletions

View File

@@ -39,16 +39,6 @@ final class ProjectService extends Service
]);
}
public function getAbout(string $projectCode, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation
{
$project = $this->projectRepository->getProjectByCode($projectCode);
if (\is_null($project)) {
return $this->errNotFound('Project not found');
}
return $this->getAboutByProject($project, $languageCode, $user);
}
public function getAboutByProject(Project $project, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation
{
if (