Commit a16fcfce authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab: remove unused methods

parent a200abd4
......@@ -533,14 +533,6 @@ impl Gitlab {
self.send(req)
}
/// Create a `POST` request to an API endpoint.
fn post<T>(&self, url: &str) -> Result<T>
where T: DeserializeOwned,
{
let param: &[(&str, &str)] = &[];
self.post_with_param(url, param)
}
/// Create a `POST` request to an API endpoint with query parameters.
fn post_with_param<T, U>(&self, url: &str, param: U) -> Result<T>
where T: DeserializeOwned,
......@@ -552,14 +544,6 @@ impl Gitlab {
self.send(req)
}
/// Create a `PUT` request to an API endpoint.
fn put<T>(&self, url: &str) -> Result<T>
where T: DeserializeOwned,
{
let param: &[(&str, &str)] = &[];
self.put_with_param(url, param)
}
/// Create a `PUT` request to an API endpoint with query parameters.
fn put_with_param<T, U>(&self, url: &str, param: U) -> Result<T>
where T: DeserializeOwned,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment