From cab0b16d3cba36ff12df0fbcf385ae86a775fad9 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: variable alignments 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) --- 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 144513fce5..ed993813d6 100644 --- a/clients/cloud-setup/nm-http-client.c +++ b/clients/cloud-setup/nm-http-client.c @@ -256,7 +256,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, @@ -360,7 +360,7 @@ nm_http_client_get(NMHttpClient * self, * * Returns: %TRUE on success or %FALSE with an error code. */ -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 862b733814..d37fd2d5dc 100644 --- a/clients/cloud-setup/nm-http-client.h +++ b/clients/cloud-setup/nm-http-client.h @@ -27,21 +27,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,