From 3e405b626b3e4eb36ae52fe79203ab95680e920a Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Thu, 20 Oct 2022 20:20:05 -0400 Subject: [PATCH] This was never used --- .../Repository/ServerRepositoryInterface.php | 5 ----- app/Repositories/Eloquent/ServerRepository.php | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/app/Contracts/Repository/ServerRepositoryInterface.php b/app/Contracts/Repository/ServerRepositoryInterface.php index c1d9ea4af..a53f83ad7 100644 --- a/app/Contracts/Repository/ServerRepositoryInterface.php +++ b/app/Contracts/Repository/ServerRepositoryInterface.php @@ -37,11 +37,6 @@ interface ServerRepositoryInterface extends RepositoryInterface */ public function getDataForCreation(Server $server, bool $refresh = false): Server; - /** - * Load associated databases onto the server model. - */ - public function loadDatabaseRelations(Server $server, bool $refresh = false): Server; - /** * Get data for use when updating a server on the Daemon. Returns an array of * the egg which is used for build and rebuild. Only loads relations diff --git a/app/Repositories/Eloquent/ServerRepository.php b/app/Repositories/Eloquent/ServerRepository.php index ebe7f7580..914edfb36 100644 --- a/app/Repositories/Eloquent/ServerRepository.php +++ b/app/Repositories/Eloquent/ServerRepository.php @@ -96,18 +96,6 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt return $server; } - /** - * Load associated databases onto the server model. - */ - public function loadDatabaseRelations(Server $server, bool $refresh = false): Server - { - if (!$server->relationLoaded('databases') || $refresh) { - $server->load('databases.host'); - } - - return $server; - } - /** * Get data for use when updating a server on the Daemon. Returns an array of * the egg which is used for build and rebuild. Only loads relations