From 1e4c7280cc1204b0c985b653011f3da914c8fd7e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 27 Feb 2023 00:09:13 +0100 Subject: [PATCH] cloud_setup: unexport nm_http_client_get() It's not used anywhere. Conflicts: code formatting only (cherry picked from commit ce225b2c06089adc402277f2b80afacb9da8cc5f) (cherry picked from commit 23b9514080c0c578ec5a8e023081837240f41896) (cherry picked from commit 36d417af60a2a09863e00cae869899883265ee8c) (cherry picked from commit d83537bff5c7b60319c918e666d0b2c714778635) (cherry picked from commit f584b9c97b975d6fbaba8332ae86f9dcfa7f3400) (cherry picked from commit f59f629431ed5fff120bf07c48e3c77ece95b44b) (cherry picked from commit 1885ff2c65951f94b54975aa3d8fc5bf7e52aa64) (cherry picked from commit cab0b16d3cba36ff12df0fbcf385ae86a775fad9) (cherry picked from commit 3a55788885faf1ca39d7db02424aad149aa0746f) (cherry picked from commit d1832ae789c57d7d6a56f9d0f3005217bd463d2e) (cherry picked from commit 90be174b5893164b4077ca154b113b8e5ddad42e) --- clients/cloud-setup/nm-http-client.c | 4 ++-- clients/cloud-setup/nm-http-client.h | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/clients/cloud-setup/nm-http-client.c b/clients/cloud-setup/nm-http-client.c index 8cbeaa747f..73ee79b669 100644 --- a/clients/cloud-setup/nm-http-client.c +++ b/clients/cloud-setup/nm-http-client.c @@ -259,7 +259,7 @@ _get_cancelled_cb (GObject *object, gpointer user_data) _ehandle_complete (edata, error); } -void +static void nm_http_client_get (NMHttpClient *self, const char *url, int timeout_msec, @@ -352,7 +352,7 @@ nm_http_client_get (NMHttpClient *self, } } -gboolean +static gboolean nm_http_client_get_finish (NMHttpClient *self, GAsyncResult *result, long *out_response_code, diff --git a/clients/cloud-setup/nm-http-client.h b/clients/cloud-setup/nm-http-client.h index ef7c984a9b..19806838b7 100644 --- a/clients/cloud-setup/nm-http-client.h +++ b/clients/cloud-setup/nm-http-client.h @@ -25,21 +25,6 @@ GMainContext *nm_http_client_get_main_context (NMHttpClient *self); /*****************************************************************************/ -void nm_http_client_get (NMHttpClient *self, - const char *uri, - int timeout_msec, - gssize max_data, - const char *const *http_headers, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); - -gboolean nm_http_client_get_finish (NMHttpClient *self, - GAsyncResult *result, - long *out_response_code, - GBytes **out_response_data, - GError **error); - typedef gboolean (*NMHttpClientPollGetCheckFcn) (long response_code, GBytes *response_data, gpointer check_user_data,