From f081d9e17ed8b818f7e2b83bd23f9306f387650b Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 22 Jan 2016 16:20:20 +0100 Subject: [PATCH] Remove MatrixClient.refresh_token matrix_api_token_refresh() is an easy enough alternative. --- src/matrix-client.c | 17 ----------------- src/matrix-client.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/src/matrix-client.c b/src/matrix-client.c index 9b6064a..25ff195 100644 --- a/src/matrix-client.c +++ b/src/matrix-client.c @@ -36,7 +36,6 @@ * @register_with_password: virtual function for * matrix_client_register_with_password() * @logout: virtual function for matrix_client_logout() - * @refresh_token: virtual function for matrix_client_refresh_token() * @begin_polling: virtual function for matrix_client_begin_polling() * @stop_polling: virtual function for matrix_client_stop_polling() * @@ -118,22 +117,6 @@ matrix_client_logout(MatrixClient *client, GError **error) ->logout(client, error); } -/** - * matrix_client_refresh_token: - * @client: a #MatrixClient - * @error: a location for a #GError, or %NULL - * - * Request a new authentication token from the server. - */ -void -matrix_client_refresh_token(MatrixClient *client, GError **error) -{ - g_return_if_fail(MATRIX_IS_CLIENT(client)); - - MATRIX_CLIENT_GET_IFACE(client) - ->refresh_token(client, error); -} - /** * matrix_client_begin_polling: * @client: a #MatrixClient diff --git a/src/matrix-client.h b/src/matrix-client.h index 4fa2303..c13f8d4 100644 --- a/src/matrix-client.h +++ b/src/matrix-client.h @@ -49,7 +49,6 @@ struct _MatrixClientInterface { const gchar *password, GError **error); void (*logout)(MatrixClient *client, GError **error); - void (*refresh_token)(MatrixClient *client, GError **error); void (*begin_polling)(MatrixClient *client, GError **error); void (*stop_polling)(MatrixClient *client, @@ -73,7 +72,6 @@ void matrix_client_register_with_password(MatrixClient *client, const gchar *password, GError **error); void matrix_client_logout(MatrixClient *client, GError **error); -void matrix_client_refresh_token(MatrixClient *client, GError **error); void matrix_client_begin_polling(MatrixClient *client, GError **error); void matrix_client_stop_polling(MatrixClient *client,