1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

storage: remove the deperecated and unused UpstreamOAuthLinkRepository::list_paginated method

This commit is contained in:
Quentin Gliech
2023-07-24 13:53:47 +02:00
parent 85659c6c36
commit fbf0e20980

View File

@ -145,26 +145,6 @@ pub trait UpstreamOAuthLinkRepository: Send + Sync {
user: &User,
) -> Result<(), Self::Error>;
/// Get a paginated list of upstream OAuth links on a user
///
/// # Parameters
///
/// * `user`: The user for which to get the upstream OAuth links
/// * `pagination`: The pagination parameters
///
/// # Errors
///
/// Returns [`Self::Error`] if the underlying repository fails
#[deprecated(note = "Use `list` instead")]
async fn list_paginated(
&mut self,
user: &User,
pagination: Pagination,
) -> Result<Page<UpstreamOAuthLink>, Self::Error> {
self.list(UpstreamOAuthLinkFilter::new().for_user(user), pagination)
.await
}
/// List [`UpstreamOAuthLink`] with the given filter and pagination
///
/// # Parameters