Skip to content

Commit

Permalink
Remove deadcode from mullvad-api
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkisemils committed Sep 19, 2023
1 parent a93b710 commit 5ba6a9b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions mullvad-api/src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,22 +479,6 @@ impl RequestFactory {
}
}

pub fn get_request<T: serde::de::DeserializeOwned>(
factory: &RequestFactory,
service: RequestServiceHandle,
uri: &str,
auth: Option<String>,
expected_statuses: &'static [hyper::StatusCode],
) -> impl Future<Output = Result<Response>> + 'static {
let request = factory.get(uri);
async move {
let mut request = request?;
request.set_auth(auth)?;
let response = service.request(request).await?;
parse_rest_response(response, expected_statuses).await
}
}

pub fn send_request(
factory: &RequestFactory,
service: RequestServiceHandle,
Expand Down

0 comments on commit 5ba6a9b

Please sign in to comment.