Skip to content

Commit

Permalink
chore: Remove unused api methods.
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Gaspar <[email protected]>
  • Loading branch information
brunogaspar committed Jun 10, 2022
1 parent e75b4d7 commit 482671a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 68 deletions.
32 changes: 0 additions & 32 deletions src/Api/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand All @@ -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}
*/
Expand All @@ -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}
*/
Expand Down
36 changes: 0 additions & 36 deletions src/Api/ApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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.
*
Expand All @@ -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.
*
Expand Down

0 comments on commit 482671a

Please sign in to comment.