Remove MatrixClient.refresh_token

matrix_api_token_refresh() is an easy enough alternative.
This commit is contained in:
Gergely Polonkai 2016-01-22 16:20:20 +01:00
parent 32d87394d9
commit f081d9e17e
2 changed files with 0 additions and 19 deletions

View File

@ -36,7 +36,6 @@
* @register_with_password: virtual function for * @register_with_password: virtual function for
* matrix_client_register_with_password() * matrix_client_register_with_password()
* @logout: virtual function for matrix_client_logout() * @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() * @begin_polling: virtual function for matrix_client_begin_polling()
* @stop_polling: virtual function for matrix_client_stop_polling() * @stop_polling: virtual function for matrix_client_stop_polling()
* *
@ -118,22 +117,6 @@ matrix_client_logout(MatrixClient *client, GError **error)
->logout(client, 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: * matrix_client_begin_polling:
* @client: a #MatrixClient * @client: a #MatrixClient

View File

@ -49,7 +49,6 @@ struct _MatrixClientInterface {
const gchar *password, const gchar *password,
GError **error); GError **error);
void (*logout)(MatrixClient *client, GError **error); void (*logout)(MatrixClient *client, GError **error);
void (*refresh_token)(MatrixClient *client, GError **error);
void (*begin_polling)(MatrixClient *client, GError **error); void (*begin_polling)(MatrixClient *client, GError **error);
void (*stop_polling)(MatrixClient *client, void (*stop_polling)(MatrixClient *client,
@ -73,7 +72,6 @@ void matrix_client_register_with_password(MatrixClient *client,
const gchar *password, const gchar *password,
GError **error); GError **error);
void matrix_client_logout(MatrixClient *client, 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_begin_polling(MatrixClient *client, GError **error);
void matrix_client_stop_polling(MatrixClient *client, void matrix_client_stop_polling(MatrixClient *client,