From 482671a0c24133244fcb8e1da06e108c7efb610b Mon Sep 17 00:00:00 2001 From: Bruno Gaspar Date: Fri, 10 Jun 2022 20:38:10 +0100 Subject: [PATCH] chore: Remove unused api methods. Signed-off-by: Bruno Gaspar --- src/Api/Api.php | 32 -------------------------------- src/Api/ApiInterface.php | 36 ------------------------------------ 2 files changed, 68 deletions(-) diff --git a/src/Api/Api.php b/src/Api/Api.php index dda1d36..6a250e6 100644 --- a/src/Api/Api.php +++ b/src/Api/Api.php @@ -115,14 +115,6 @@ public function _get($url = null, $parameters = []) return $this->execute('get', $url, $parameters); } - /** - * {@inheritdoc} - */ - public function _head($url = null, array $parameters = []) - { - return $this->execute('head', $url, $parameters); - } - /** * {@inheritdoc} */ @@ -131,22 +123,6 @@ public function _delete($url = null, array $parameters = []) return $this->execute('delete', $url, $parameters); } - /** - * {@inheritdoc} - */ - public function _put($url = null, array $parameters = []) - { - return $this->execute('put', $url, $parameters); - } - - /** - * {@inheritdoc} - */ - public function _patch($url = null, array $parameters = []) - { - return $this->execute('patch', $url, $parameters); - } - /** * {@inheritdoc} */ @@ -155,14 +131,6 @@ public function _post($url = null, array $parameters = []) return $this->execute('post', $url, $parameters); } - /** - * {@inheritdoc} - */ - public function _options($url = null, array $parameters = []) - { - return $this->execute('options', $url, $parameters); - } - /** * {@inheritdoc} */ diff --git a/src/Api/ApiInterface.php b/src/Api/ApiInterface.php index a410cb4..e5c6603 100644 --- a/src/Api/ApiInterface.php +++ b/src/Api/ApiInterface.php @@ -61,15 +61,6 @@ public function idempotent($idempotencyKey); */ public function _get($url = null, $parameters = []); - /** - * Send a HEAD request. - * - * @param string $url - * @param array $parameters - * @return array - */ - public function _head($url = null, array $parameters = []); - /** * Send a DELETE request. * @@ -79,24 +70,6 @@ public function _head($url = null, array $parameters = []); */ public function _delete($url = null, array $parameters = []); - /** - * Send a PUT request. - * - * @param string $url - * @param array $parameters - * @return array - */ - public function _put($url = null, array $parameters = []); - - /** - * Send a PATCH request. - * - * @param string $url - * @param array $parameters - * @return array - */ - public function _patch($url = null, array $parameters = []); - /** * Send a POST request. * @@ -106,15 +79,6 @@ public function _patch($url = null, array $parameters = []); */ public function _post($url = null, array $parameters = []); - /** - * Send an OPTIONS request. - * - * @param string $url - * @param array $parameters - * @return array - */ - public function _options($url = null, array $parameters = []); - /** * Executes the HTTP request. *