diff --git a/lib/Gitlab/Api/Projects.php b/lib/Gitlab/Api/Projects.php index a1c8e818f..2636919eb 100644 --- a/lib/Gitlab/Api/Projects.php +++ b/lib/Gitlab/Api/Projects.php @@ -305,37 +305,6 @@ public function members($project_id, $parameters = []) return $this->get($this->getProjectPath($project_id, 'members'), $resolver->resolve($parameters)); } - /** - * @param int $project_id - * @param array $parameters ( - * - * @var string $query The query you want to search members for. - * ) - * - * @throws MissingOptionsException If a required option is not provided - * - * @return mixed - */ - public function membersAll($project_id, $parameters = []) - { - if (!is_array($parameters)) { - @trigger_error("Deprecated: String parameter of the members() function is deprecated.", E_USER_NOTICE); - $username_query = $parameters; - $parameters = array(); - if (!empty($username_query)) { - $parameters['query'] = $username_query; - } - } - - $resolver = $this->createOptionsResolver(); - - $resolver->setDefined('query') - ->setAllowedTypes('query', 'string') - ; - - return $this->get($this->getProjectPath($project_id, 'members/all'), $resolver->resolve($parameters)); - } - /** * @param int $project_id * @param int $user_id @@ -811,7 +780,7 @@ public function deployment($project_id, $deployment_id) { return $this->get($this->getProjectPath($project_id, 'deployments/'.$this->encodePath($deployment_id))); } - + /** * @param mixed $project_id * @param array $parameters @@ -839,7 +808,7 @@ public function addShare($project_id, array $parameters = []) return $this->post($this->getProjectPath($project_id, 'share'), $resolver->resolve($parameters)); } - + /** * @param mixed $project_id * @param int $group_id diff --git a/lib/Gitlab/Model/Project.php b/lib/Gitlab/Model/Project.php index 67ea0c47b..64bfe9b8a 100644 --- a/lib/Gitlab/Model/Project.php +++ b/lib/Gitlab/Model/Project.php @@ -190,22 +190,6 @@ public function members($username_query = null) return $members; } - /** - * @param string $username_query - * @return User[] - */ - public function membersAll($username_query = null) - { - $data = $this->client->projects()->membersAll($this->id, $username_query); - - $members = array(); - foreach ($data as $member) { - $members[] = User::fromArray($this->getClient(), $member); - } - - return $members; - } - /** * @param int $user_id * @return User