From eb658877cb644f615248b44dd0225dc91e601ea5 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Thu, 31 Dec 2020 11:39:37 +0100 Subject: [PATCH] chg: [internal] Remove unused methods --- app/Model/SharingGroup.php | 7 ------- app/Model/SharingGroupServer.php | 16 ---------------- 2 files changed, 23 deletions(-) diff --git a/app/Model/SharingGroup.php b/app/Model/SharingGroup.php index 8811117b2..9c7a42eb5 100644 --- a/app/Model/SharingGroup.php +++ b/app/Model/SharingGroup.php @@ -111,13 +111,6 @@ class SharingGroup extends AppModel return false; } - public function fetchAllAuthorisedForServer($server) - { - $sgs = $this->SharingGroupOrg->fetchAllAuthorised($server['RemoteOrg']['id']); - $sgs = array_merge($sgs, $this->SharingGroupServer->fetchAllSGsForServer($server['Server']['id'])); - return $sgs; - } - /** * Returns a list of all sharing groups that the user is allowed to see. * Scope can be: diff --git a/app/Model/SharingGroupServer.php b/app/Model/SharingGroupServer.php index 952de6f43..f96ed5e60 100644 --- a/app/Model/SharingGroupServer.php +++ b/app/Model/SharingGroupServer.php @@ -107,20 +107,4 @@ class SharingGroupServer extends AppModel } return false; } - - public function fetchAllSGsForServer($server_id) - { - $sgs = $this->find('all', array( - 'recursive' => -1, - 'conditions' => array('server_id' => $server_id) - )); - if (empty($sgs)) { - return array(); - } - $sgids = array(); - foreach ($sgs as $temp) { - $sgids[] = $temp[$this->alias]['id']; - } - return $sgids; - } }