From fbf0e20980a545d86f907bda269bf0269f901edc Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 24 Jul 2023 13:53:47 +0200 Subject: [PATCH] storage: remove the deperecated and unused `UpstreamOAuthLinkRepository::list_paginated` method --- crates/storage/src/upstream_oauth2/link.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/crates/storage/src/upstream_oauth2/link.rs b/crates/storage/src/upstream_oauth2/link.rs index 21c0f41e..b22d760e 100644 --- a/crates/storage/src/upstream_oauth2/link.rs +++ b/crates/storage/src/upstream_oauth2/link.rs @@ -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, Self::Error> { - self.list(UpstreamOAuthLinkFilter::new().for_user(user), pagination) - .await - } - /// List [`UpstreamOAuthLink`] with the given filter and pagination /// /// # Parameters