From 5ba6a9b306e1451292216cd96f613c46be2998c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Em=C4=ABls?= Date: Tue, 19 Sep 2023 17:43:27 +0200 Subject: [PATCH] Remove deadcode from mullvad-api --- mullvad-api/src/rest.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/mullvad-api/src/rest.rs b/mullvad-api/src/rest.rs index 80bf2becb427..0fc31353a7fa 100644 --- a/mullvad-api/src/rest.rs +++ b/mullvad-api/src/rest.rs @@ -479,22 +479,6 @@ impl RequestFactory { } } -pub fn get_request( - factory: &RequestFactory, - service: RequestServiceHandle, - uri: &str, - auth: Option, - expected_statuses: &'static [hyper::StatusCode], -) -> impl Future> + '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,